[PARISC] fix "reduce size of task_struct on 64-bit machines" fallout
authorKyle McMartin <kyle@parisc-linux.org>
Wed, 30 May 2007 06:27:46 +0000 (02:27 -0400)
committerKyle McMartin <kyle@minerva.i.cabal.ca>
Wed, 30 May 2007 06:27:46 +0000 (02:27 -0400)
Amazingly, parisc was the only arch effected by this...
Convert register-sized loads/stores to always be 32-bit for these fields.

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
arch/parisc/kernel/entry.S
arch/parisc/kernel/syscall.S

index 98ae563a0905d2aae724d99811c3c7bffe97935d..42598abf45763ccd4c9d2c4b1f2970eb6be8b50f 100644 (file)
@@ -2019,10 +2019,9 @@ ENTRY(syscall_exit)
        STREG     %r28,TASK_PT_GR28(%r1)
 
 #ifdef CONFIG_HPUX
-
 /* <linux/personality.h> cannot be easily included */
 #define PER_HPUX 0x10
-       LDREG     TASK_PERSONALITY(%r1),%r19
+       ldw     TASK_PERSONALITY(%r1),%r19
 
        /* We can't use "CMPIB<> PER_HPUX" since "im5" field is sign extended */
        ldo       -PER_HPUX(%r19), %r19
@@ -2081,7 +2080,7 @@ syscall_restore:
        /* Are we being ptraced? */
        LDREG   TI_TASK-THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r1
 
-       LDREG   TASK_PTRACE(%r1), %r19
+       ldw     TASK_PTRACE(%r1), %r19
        bb,<    %r19,31,syscall_restore_rfi
        nop
 
index 4603032d56ef9f6801bea3ff36847ec75b0eb491..91b2a48b19211d79b2ce2c41956d9c7dfde02713 100644 (file)
@@ -181,7 +181,7 @@ linux_gateway_entry:
        /* Are we being ptraced? */
        mfctl   %cr30, %r1
        LDREG   TI_TASK(%r1),%r1
-       LDREG   TASK_PTRACE(%r1), %r1
+       ldw     TASK_PTRACE(%r1), %r1
        bb,<,n  %r1,31,.Ltracesys
        
        /* Note!  We cannot use the syscall table that is mapped