]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[S390] rename lowcore field
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 11 Mar 2012 15:59:25 +0000 (11:59 -0400)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 11 Mar 2012 15:59:27 +0000 (11:59 -0400)
The 16 bit value at the lowcore location with offset 0x84 is the
cpu address that is associated with an external interrupt. Rename
the field from cpu_addr to ext_cpu_addr to make that clear.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/lowcore.h
arch/s390/kernel/asm-offsets.c
arch/s390/kernel/entry.S
arch/s390/kernel/entry64.S
arch/s390/kernel/swsusp_asm64.S
arch/s390/kvm/interrupt.c

index 707f2306725b9a91a79b40d3627fc7bd18e1bcb9..0831449e87a3866ec934b24efe40d3fc9dac93c8 100644 (file)
@@ -56,7 +56,7 @@ struct _lowcore {
        psw_t   mcck_new_psw;                   /* 0x0070 */
        psw_t   io_new_psw;                     /* 0x0078 */
        __u32   ext_params;                     /* 0x0080 */
-       __u16   cpu_addr;                       /* 0x0084 */
+       __u16   ext_cpu_addr;                   /* 0x0084 */
        __u16   ext_int_code;                   /* 0x0086 */
        __u16   svc_ilc;                        /* 0x0088 */
        __u16   svc_code;                       /* 0x008a */
@@ -189,7 +189,7 @@ struct _lowcore {
        __u32   ipl_parmblock_ptr;              /* 0x0014 */
        __u8    pad_0x0018[0x0080-0x0018];      /* 0x0018 */
        __u32   ext_params;                     /* 0x0080 */
-       __u16   cpu_addr;                       /* 0x0084 */
+       __u16   ext_cpu_addr;                   /* 0x0084 */
        __u16   ext_int_code;                   /* 0x0086 */
        __u16   svc_ilc;                        /* 0x0088 */
        __u16   svc_code;                       /* 0x008a */
index 6e6a72e66d60d8ed6aabf84a9821af65ddea2282..530ae0e8e38f73849253073fd66f20a9d1718a2b 100644 (file)
@@ -78,7 +78,7 @@ int main(void)
        BLANK();
        /* lowcore offsets */
        DEFINE(__LC_EXT_PARAMS, offsetof(struct _lowcore, ext_params));
-       DEFINE(__LC_CPU_ADDRESS, offsetof(struct _lowcore, cpu_addr));
+       DEFINE(__LC_EXT_CPU_ADDR, offsetof(struct _lowcore, ext_cpu_addr));
        DEFINE(__LC_EXT_INT_CODE, offsetof(struct _lowcore, ext_int_code));
        DEFINE(__LC_SVC_ILC, offsetof(struct _lowcore, svc_ilc));
        DEFINE(__LC_SVC_INT_CODE, offsetof(struct _lowcore, svc_code));
index 3705700ed37451ace0685532f6da7d8f12eb8100..5f437b830da55051d632771d9072a15c8ead8197 100644 (file)
@@ -606,7 +606,7 @@ ext_skip:
        stm     %r8,%r9,__PT_PSW(%r11)
        TRACE_IRQS_OFF
        lr      %r2,%r11                # pass pointer to pt_regs
-       l       %r3,__LC_CPU_ADDRESS    # get cpu address + interruption code
+       l       %r3,__LC_EXT_CPU_ADDR   # get cpu address + interruption code
        l       %r4,__LC_EXT_PARAMS     # get external parameters
        l       %r1,BASED(.Ldo_extint)
        basr    %r14,%r1                # call do_extint
index 412a7b8783d7b99c47f5b3715a328d4fdf0ea1ed..bacbd2848d40483638cdca28fd78f698dcb3fd18 100644 (file)
@@ -625,7 +625,7 @@ ext_skip:
        TRACE_IRQS_OFF
        lghi    %r1,4096
        lgr     %r2,%r11                # pass pointer to pt_regs
-       llgf    %r3,__LC_CPU_ADDRESS    # get cpu address + interruption code
+       llgf    %r3,__LC_EXT_CPU_ADDR   # get cpu address + interruption code
        llgf    %r4,__LC_EXT_PARAMS     # get external parameter
        lg      %r5,__LC_EXT_PARAMS2-4096(%r1)  # get 64 bit external parameter
        brasl   %r14,do_extint
index acb78cdee896c1b9fe9c2d74ce212b254044a461..2ef39d1519a9cc784c489ebd07808a22700c972d 100644 (file)
@@ -42,7 +42,7 @@ ENTRY(swsusp_arch_suspend)
        lghi    %r1,0x1000
 
        /* Save CPU address */
-       stap    __LC_CPU_ADDRESS(%r0)
+       stap    __LC_EXT_CPU_ADDR(%r0)
 
        /* Store registers */
        mvc     0x318(4,%r1),__SF_EMPTY(%r15)   /* move prefix to lowcore */
@@ -173,7 +173,7 @@ pgm_check_entry:
        larl    %r1,.Lresume_cpu                /* Resume CPU address: r2 */
        stap    0(%r1)
        llgh    %r2,0(%r1)
-       llgh    %r1,__LC_CPU_ADDRESS(%r0)       /* Suspend CPU address: r1 */
+       llgh    %r1,__LC_EXT_CPU_ADDR(%r0)      /* Suspend CPU address: r1 */
        cgr     %r1,%r2
        je      restore_registers               /* r1 = r2 -> nothing to do */
        larl    %r4,.Lrestart_suspend_psw       /* Set new restart PSW */
index 278ee009ce6570a9d4049a095def51b17fb164d5..f0647ce6da21db24bb926afe148f8f3bc828fcf2 100644 (file)
@@ -134,7 +134,7 @@ static void __do_deliver_interrupt(struct kvm_vcpu *vcpu,
                if (rc == -EFAULT)
                        exception = 1;
 
-               rc = put_guest_u16(vcpu, __LC_CPU_ADDRESS, inti->emerg.code);
+               rc = put_guest_u16(vcpu, __LC_EXT_CPU_ADDR, inti->emerg.code);
                if (rc == -EFAULT)
                        exception = 1;
 
@@ -156,7 +156,7 @@ static void __do_deliver_interrupt(struct kvm_vcpu *vcpu,
                if (rc == -EFAULT)
                        exception = 1;
 
-               rc = put_guest_u16(vcpu, __LC_CPU_ADDRESS, inti->extcall.code);
+               rc = put_guest_u16(vcpu, __LC_EXT_CPU_ADDR, inti->extcall.code);
                if (rc == -EFAULT)
                        exception = 1;
 
@@ -202,7 +202,7 @@ static void __do_deliver_interrupt(struct kvm_vcpu *vcpu,
                if (rc == -EFAULT)
                        exception = 1;
 
-               rc = put_guest_u16(vcpu, __LC_CPU_ADDRESS, 0x0d00);
+               rc = put_guest_u16(vcpu, __LC_EXT_CPU_ADDR, 0x0d00);
                if (rc == -EFAULT)
                        exception = 1;