]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
s390: rename CIF_ASCE to CIF_ASCE_PRIMARY
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 17 Feb 2017 07:12:30 +0000 (08:12 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 23 Feb 2017 09:06:38 +0000 (10:06 +0100)
This is just a preparation patch in order to keep the "restore address
space after syscall" patch small.
Rename CIF_ASCE to CIF_ASCE_PRIMARY to be unique and specific when
introducing a second CIF_ASCE_SECONDARY CIF flag.

Suggested-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/mmu_context.h
arch/s390/include/asm/processor.h
arch/s390/kernel/entry.S

index 67f7a991c929bb92731c6aafeef4a1255d69c959..9b828c073176dbf19658ffea7936544629d67777 100644 (file)
@@ -63,7 +63,7 @@ static inline void set_user_asce(struct mm_struct *mm)
        S390_lowcore.user_asce = mm->context.asce;
        if (current->thread.mm_segment.ar4)
                __ctl_load(S390_lowcore.user_asce, 7, 7);
-       set_cpu_flag(CIF_ASCE);
+       set_cpu_flag(CIF_ASCE_PRIMARY);
 }
 
 static inline void clear_user_asce(void)
@@ -81,7 +81,7 @@ static inline void load_kernel_asce(void)
        __ctl_store(asce, 1, 1);
        if (asce != S390_lowcore.kernel_asce)
                __ctl_load(S390_lowcore.kernel_asce, 1, 1);
-       set_cpu_flag(CIF_ASCE);
+       set_cpu_flag(CIF_ASCE_PRIMARY);
 }
 
 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
index dacba341e47594463a1ed12c44f21879e9d1a0a2..3c8fae02ac2de3fdd7ad84b9b1818426b0e8a016 100644 (file)
 #include <linux/const.h>
 
 #define CIF_MCCK_PENDING       0       /* machine check handling is pending */
-#define CIF_ASCE               1       /* user asce needs fixup / uaccess */
+#define CIF_ASCE_PRIMARY       1       /* primary asce needs fixup / uaccess */
 #define CIF_NOHZ_DELAY         2       /* delay HZ disable for a tick */
 #define CIF_FPU                        3       /* restore FPU registers */
 #define CIF_IGNORE_IRQ         4       /* ignore interrupt (for udelay) */
 #define CIF_ENABLED_WAIT       5       /* in enabled wait state */
 
 #define _CIF_MCCK_PENDING      _BITUL(CIF_MCCK_PENDING)
-#define _CIF_ASCE              _BITUL(CIF_ASCE)
+#define _CIF_ASCE_PRIMARY      _BITUL(CIF_ASCE_PRIMARY)
 #define _CIF_NOHZ_DELAY                _BITUL(CIF_NOHZ_DELAY)
 #define _CIF_FPU               _BITUL(CIF_FPU)
 #define _CIF_IGNORE_IRQ                _BITUL(CIF_IGNORE_IRQ)
index db469fa11462c16a0f21676a4324c24befcee2b6..ae7d1a230abf3dee033b3341b2e7c596933eda37 100644 (file)
@@ -50,7 +50,7 @@ _TIF_WORK     = (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | _TIF_NEED_RESCHED | \
                   _TIF_UPROBE)
 _TIF_TRACE     = (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | _TIF_SECCOMP | \
                   _TIF_SYSCALL_TRACEPOINT)
-_CIF_WORK      = (_CIF_MCCK_PENDING | _CIF_ASCE | _CIF_FPU)
+_CIF_WORK      = (_CIF_MCCK_PENDING | _CIF_ASCE_PRIMARY | _CIF_FPU)
 _PIF_WORK      = (_PIF_PER_TRAP)
 
 #define BASED(name) name-cleanup_critical(%r13)
@@ -339,8 +339,8 @@ ENTRY(system_call)
        jo      .Lsysc_notify_resume
        TSTMSK  __LC_CPU_FLAGS,_CIF_FPU
        jo      .Lsysc_vxrs
-       TSTMSK  __LC_CPU_FLAGS,_CIF_ASCE
-       jo      .Lsysc_uaccess
+       TSTMSK  __LC_CPU_FLAGS,_CIF_ASCE_PRIMARY
+       jo      .Lsysc_asce_primary
        j       .Lsysc_return           # beware of critical section cleanup
 
 #
@@ -358,10 +358,10 @@ ENTRY(system_call)
        jg      s390_handle_mcck        # TIF bit will be cleared by handler
 
 #
-# _CIF_ASCE is set, load user space asce
+# _CIF_ASCE_PRIMARY is set, load user space asce
 #
-.Lsysc_uaccess:
-       ni      __LC_CPU_FLAGS+7,255-_CIF_ASCE
+.Lsysc_asce_primary:
+       ni      __LC_CPU_FLAGS+7,255-_CIF_ASCE_PRIMARY
        lctlg   %c1,%c1,__LC_USER_ASCE          # load primary asce
        j       .Lsysc_return
 
@@ -661,8 +661,8 @@ ENTRY(io_int_handler)
        jo      .Lio_notify_resume
        TSTMSK  __LC_CPU_FLAGS,_CIF_FPU
        jo      .Lio_vxrs
-       TSTMSK  __LC_CPU_FLAGS,_CIF_ASCE
-       jo      .Lio_uaccess
+       TSTMSK  __LC_CPU_FLAGS,_CIF_ASCE_PRIMARY
+       jo      .Lio_asce_primary
        j       .Lio_return             # beware of critical section cleanup
 
 #
@@ -675,10 +675,10 @@ ENTRY(io_int_handler)
        j       .Lio_return
 
 #
-# _CIF_ASCE is set, load user space asce
+# _CIF_ASCE_PRIMARY is set, load user space asce
 #
-.Lio_uaccess:
-       ni      __LC_CPU_FLAGS+7,255-_CIF_ASCE
+.Lio_asce_primary:
+       ni      __LC_CPU_FLAGS+7,255-_CIF_ASCE_PRIMARY
        lctlg   %c1,%c1,__LC_USER_ASCE          # load primary asce
        j       .Lio_return