diff options
Diffstat (limited to 'arch/parisc/kernel/entry.S')
-rw-r--r-- | arch/parisc/kernel/entry.S | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S index ec04e0ad77fa..0ca49710d95e 100644 --- a/arch/parisc/kernel/entry.S +++ b/arch/parisc/kernel/entry.S | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <asm/unistd.h> | 37 | #include <asm/unistd.h> |
38 | #include <asm/thread_info.h> | 38 | #include <asm/thread_info.h> |
39 | 39 | ||
40 | #ifdef __LP64__ | 40 | #ifdef CONFIG_64BIT |
41 | #define CMPIB cmpib,* | 41 | #define CMPIB cmpib,* |
42 | #define CMPB cmpb,* | 42 | #define CMPB cmpb,* |
43 | #define COND(x) *x | 43 | #define COND(x) *x |
@@ -217,7 +217,7 @@ | |||
217 | va = r8 /* virtual address for which the trap occured */ | 217 | va = r8 /* virtual address for which the trap occured */ |
218 | spc = r24 /* space for which the trap occured */ | 218 | spc = r24 /* space for which the trap occured */ |
219 | 219 | ||
220 | #ifndef __LP64__ | 220 | #ifndef CONFIG_64BIT |
221 | 221 | ||
222 | /* | 222 | /* |
223 | * itlb miss interruption handler (parisc 1.1 - 32 bit) | 223 | * itlb miss interruption handler (parisc 1.1 - 32 bit) |
@@ -239,7 +239,7 @@ | |||
239 | 239 | ||
240 | .macro itlb_20 code | 240 | .macro itlb_20 code |
241 | mfctl %pcsq, spc | 241 | mfctl %pcsq, spc |
242 | #ifdef __LP64__ | 242 | #ifdef CONFIG_64BIT |
243 | b itlb_miss_20w | 243 | b itlb_miss_20w |
244 | #else | 244 | #else |
245 | b itlb_miss_20 | 245 | b itlb_miss_20 |
@@ -249,7 +249,7 @@ | |||
249 | .align 32 | 249 | .align 32 |
250 | .endm | 250 | .endm |
251 | 251 | ||
252 | #ifndef __LP64__ | 252 | #ifndef CONFIG_64BIT |
253 | /* | 253 | /* |
254 | * naitlb miss interruption handler (parisc 1.1 - 32 bit) | 254 | * naitlb miss interruption handler (parisc 1.1 - 32 bit) |
255 | * | 255 | * |
@@ -286,7 +286,7 @@ | |||
286 | .macro naitlb_20 code | 286 | .macro naitlb_20 code |
287 | 287 | ||
288 | mfctl %isr,spc | 288 | mfctl %isr,spc |
289 | #ifdef __LP64__ | 289 | #ifdef CONFIG_64BIT |
290 | b itlb_miss_20w | 290 | b itlb_miss_20w |
291 | #else | 291 | #else |
292 | b itlb_miss_20 | 292 | b itlb_miss_20 |
@@ -299,7 +299,7 @@ | |||
299 | .align 32 | 299 | .align 32 |
300 | .endm | 300 | .endm |
301 | 301 | ||
302 | #ifndef __LP64__ | 302 | #ifndef CONFIG_64BIT |
303 | /* | 303 | /* |
304 | * dtlb miss interruption handler (parisc 1.1 - 32 bit) | 304 | * dtlb miss interruption handler (parisc 1.1 - 32 bit) |
305 | */ | 305 | */ |
@@ -321,7 +321,7 @@ | |||
321 | .macro dtlb_20 code | 321 | .macro dtlb_20 code |
322 | 322 | ||
323 | mfctl %isr, spc | 323 | mfctl %isr, spc |
324 | #ifdef __LP64__ | 324 | #ifdef CONFIG_64BIT |
325 | b dtlb_miss_20w | 325 | b dtlb_miss_20w |
326 | #else | 326 | #else |
327 | b dtlb_miss_20 | 327 | b dtlb_miss_20 |
@@ -331,7 +331,7 @@ | |||
331 | .align 32 | 331 | .align 32 |
332 | .endm | 332 | .endm |
333 | 333 | ||
334 | #ifndef __LP64__ | 334 | #ifndef CONFIG_64BIT |
335 | /* nadtlb miss interruption handler (parisc 1.1 - 32 bit) */ | 335 | /* nadtlb miss interruption handler (parisc 1.1 - 32 bit) */ |
336 | 336 | ||
337 | .macro nadtlb_11 code | 337 | .macro nadtlb_11 code |
@@ -349,7 +349,7 @@ | |||
349 | .macro nadtlb_20 code | 349 | .macro nadtlb_20 code |
350 | 350 | ||
351 | mfctl %isr,spc | 351 | mfctl %isr,spc |
352 | #ifdef __LP64__ | 352 | #ifdef CONFIG_64BIT |
353 | b nadtlb_miss_20w | 353 | b nadtlb_miss_20w |
354 | #else | 354 | #else |
355 | b nadtlb_miss_20 | 355 | b nadtlb_miss_20 |
@@ -359,7 +359,7 @@ | |||
359 | .align 32 | 359 | .align 32 |
360 | .endm | 360 | .endm |
361 | 361 | ||
362 | #ifndef __LP64__ | 362 | #ifndef CONFIG_64BIT |
363 | /* | 363 | /* |
364 | * dirty bit trap interruption handler (parisc 1.1 - 32 bit) | 364 | * dirty bit trap interruption handler (parisc 1.1 - 32 bit) |
365 | */ | 365 | */ |
@@ -381,7 +381,7 @@ | |||
381 | .macro dbit_20 code | 381 | .macro dbit_20 code |
382 | 382 | ||
383 | mfctl %isr,spc | 383 | mfctl %isr,spc |
384 | #ifdef __LP64__ | 384 | #ifdef CONFIG_64BIT |
385 | b dbit_trap_20w | 385 | b dbit_trap_20w |
386 | #else | 386 | #else |
387 | b dbit_trap_20 | 387 | b dbit_trap_20 |
@@ -394,7 +394,7 @@ | |||
394 | /* The following are simple 32 vs 64 bit instruction | 394 | /* The following are simple 32 vs 64 bit instruction |
395 | * abstractions for the macros */ | 395 | * abstractions for the macros */ |
396 | .macro EXTR reg1,start,length,reg2 | 396 | .macro EXTR reg1,start,length,reg2 |
397 | #ifdef __LP64__ | 397 | #ifdef CONFIG_64BIT |
398 | extrd,u \reg1,32+\start,\length,\reg2 | 398 | extrd,u \reg1,32+\start,\length,\reg2 |
399 | #else | 399 | #else |
400 | extrw,u \reg1,\start,\length,\reg2 | 400 | extrw,u \reg1,\start,\length,\reg2 |
@@ -402,7 +402,7 @@ | |||
402 | .endm | 402 | .endm |
403 | 403 | ||
404 | .macro DEP reg1,start,length,reg2 | 404 | .macro DEP reg1,start,length,reg2 |
405 | #ifdef __LP64__ | 405 | #ifdef CONFIG_64BIT |
406 | depd \reg1,32+\start,\length,\reg2 | 406 | depd \reg1,32+\start,\length,\reg2 |
407 | #else | 407 | #else |
408 | depw \reg1,\start,\length,\reg2 | 408 | depw \reg1,\start,\length,\reg2 |
@@ -410,7 +410,7 @@ | |||
410 | .endm | 410 | .endm |
411 | 411 | ||
412 | .macro DEPI val,start,length,reg | 412 | .macro DEPI val,start,length,reg |
413 | #ifdef __LP64__ | 413 | #ifdef CONFIG_64BIT |
414 | depdi \val,32+\start,\length,\reg | 414 | depdi \val,32+\start,\length,\reg |
415 | #else | 415 | #else |
416 | depwi \val,\start,\length,\reg | 416 | depwi \val,\start,\length,\reg |
@@ -421,7 +421,7 @@ | |||
421 | * fault. We have to extract this and place it in the va, | 421 | * fault. We have to extract this and place it in the va, |
422 | * zeroing the corresponding bits in the space register */ | 422 | * zeroing the corresponding bits in the space register */ |
423 | .macro space_adjust spc,va,tmp | 423 | .macro space_adjust spc,va,tmp |
424 | #ifdef __LP64__ | 424 | #ifdef CONFIG_64BIT |
425 | extrd,u \spc,63,SPACEID_SHIFT,\tmp | 425 | extrd,u \spc,63,SPACEID_SHIFT,\tmp |
426 | depd %r0,63,SPACEID_SHIFT,\spc | 426 | depd %r0,63,SPACEID_SHIFT,\spc |
427 | depd \tmp,31,SPACEID_SHIFT,\va | 427 | depd \tmp,31,SPACEID_SHIFT,\va |
@@ -479,7 +479,7 @@ | |||
479 | bb,>=,n \pmd,_PxD_PRESENT_BIT,\fault | 479 | bb,>=,n \pmd,_PxD_PRESENT_BIT,\fault |
480 | DEP %r0,31,PxD_FLAG_SHIFT,\pmd /* clear flags */ | 480 | DEP %r0,31,PxD_FLAG_SHIFT,\pmd /* clear flags */ |
481 | copy \pmd,%r9 | 481 | copy \pmd,%r9 |
482 | #ifdef __LP64__ | 482 | #ifdef CONFIG_64BIT |
483 | shld %r9,PxD_VALUE_SHIFT,\pmd | 483 | shld %r9,PxD_VALUE_SHIFT,\pmd |
484 | #else | 484 | #else |
485 | shlw %r9,PxD_VALUE_SHIFT,\pmd | 485 | shlw %r9,PxD_VALUE_SHIFT,\pmd |
@@ -610,7 +610,7 @@ | |||
610 | .macro do_alias spc,tmp,tmp1,va,pte,prot,fault | 610 | .macro do_alias spc,tmp,tmp1,va,pte,prot,fault |
611 | cmpib,COND(<>),n 0,\spc,\fault | 611 | cmpib,COND(<>),n 0,\spc,\fault |
612 | ldil L%(TMPALIAS_MAP_START),\tmp | 612 | ldil L%(TMPALIAS_MAP_START),\tmp |
613 | #if defined(__LP64__) && (TMPALIAS_MAP_START >= 0x80000000) | 613 | #if defined(CONFIG_64BIT) && (TMPALIAS_MAP_START >= 0x80000000) |
614 | /* on LP64, ldi will sign extend into the upper 32 bits, | 614 | /* on LP64, ldi will sign extend into the upper 32 bits, |
615 | * which is behaviour we don't want */ | 615 | * which is behaviour we don't want */ |
616 | depdi 0,31,32,\tmp | 616 | depdi 0,31,32,\tmp |
@@ -624,7 +624,7 @@ | |||
624 | * OK, it is in the temp alias region, check whether "from" or "to". | 624 | * OK, it is in the temp alias region, check whether "from" or "to". |
625 | * Check "subtle" note in pacache.S re: r23/r26. | 625 | * Check "subtle" note in pacache.S re: r23/r26. |
626 | */ | 626 | */ |
627 | #ifdef __LP64__ | 627 | #ifdef CONFIG_64BIT |
628 | extrd,u,*= \va,41,1,%r0 | 628 | extrd,u,*= \va,41,1,%r0 |
629 | #else | 629 | #else |
630 | extrw,u,= \va,9,1,%r0 | 630 | extrw,u,= \va,9,1,%r0 |
@@ -691,7 +691,7 @@ fault_vector_20: | |||
691 | def 30 | 691 | def 30 |
692 | def 31 | 692 | def 31 |
693 | 693 | ||
694 | #ifndef __LP64__ | 694 | #ifndef CONFIG_64BIT |
695 | 695 | ||
696 | .export fault_vector_11 | 696 | .export fault_vector_11 |
697 | 697 | ||
@@ -764,7 +764,7 @@ __kernel_thread: | |||
764 | 764 | ||
765 | copy %r30, %r1 | 765 | copy %r30, %r1 |
766 | ldo PT_SZ_ALGN(%r30),%r30 | 766 | ldo PT_SZ_ALGN(%r30),%r30 |
767 | #ifdef __LP64__ | 767 | #ifdef CONFIG_64BIT |
768 | /* Yo, function pointers in wide mode are little structs... -PB */ | 768 | /* Yo, function pointers in wide mode are little structs... -PB */ |
769 | ldd 24(%r26), %r2 | 769 | ldd 24(%r26), %r2 |
770 | STREG %r2, PT_GR27(%r1) /* Store childs %dp */ | 770 | STREG %r2, PT_GR27(%r1) /* Store childs %dp */ |
@@ -780,7 +780,7 @@ __kernel_thread: | |||
780 | or %r26, %r24, %r26 /* will have kernel mappings. */ | 780 | or %r26, %r24, %r26 /* will have kernel mappings. */ |
781 | ldi 1, %r25 /* stack_start, signals kernel thread */ | 781 | ldi 1, %r25 /* stack_start, signals kernel thread */ |
782 | stw %r0, -52(%r30) /* user_tid */ | 782 | stw %r0, -52(%r30) /* user_tid */ |
783 | #ifdef __LP64__ | 783 | #ifdef CONFIG_64BIT |
784 | ldo -16(%r30),%r29 /* Reference param save area */ | 784 | ldo -16(%r30),%r29 /* Reference param save area */ |
785 | #endif | 785 | #endif |
786 | BL do_fork, %r2 | 786 | BL do_fork, %r2 |
@@ -809,7 +809,7 @@ ret_from_kernel_thread: | |||
809 | 809 | ||
810 | LDREG TI_TASK-THREAD_SZ_ALGN(%r30), %r1 | 810 | LDREG TI_TASK-THREAD_SZ_ALGN(%r30), %r1 |
811 | LDREG TASK_PT_GR25(%r1), %r26 | 811 | LDREG TASK_PT_GR25(%r1), %r26 |
812 | #ifdef __LP64__ | 812 | #ifdef CONFIG_64BIT |
813 | LDREG TASK_PT_GR27(%r1), %r27 | 813 | LDREG TASK_PT_GR27(%r1), %r27 |
814 | LDREG TASK_PT_GR22(%r1), %r22 | 814 | LDREG TASK_PT_GR22(%r1), %r22 |
815 | #endif | 815 | #endif |
@@ -817,7 +817,7 @@ ret_from_kernel_thread: | |||
817 | ble 0(%sr7, %r1) | 817 | ble 0(%sr7, %r1) |
818 | copy %r31, %r2 | 818 | copy %r31, %r2 |
819 | 819 | ||
820 | #ifdef __LP64__ | 820 | #ifdef CONFIG_64BIT |
821 | ldo -16(%r30),%r29 /* Reference param save area */ | 821 | ldo -16(%r30),%r29 /* Reference param save area */ |
822 | loadgp /* Thread could have been in a module */ | 822 | loadgp /* Thread could have been in a module */ |
823 | #endif | 823 | #endif |
@@ -838,7 +838,7 @@ __execve: | |||
838 | STREG %r26, PT_GR26(%r16) | 838 | STREG %r26, PT_GR26(%r16) |
839 | STREG %r25, PT_GR25(%r16) | 839 | STREG %r25, PT_GR25(%r16) |
840 | STREG %r24, PT_GR24(%r16) | 840 | STREG %r24, PT_GR24(%r16) |
841 | #ifdef __LP64__ | 841 | #ifdef CONFIG_64BIT |
842 | ldo -16(%r30),%r29 /* Reference param save area */ | 842 | ldo -16(%r30),%r29 /* Reference param save area */ |
843 | #endif | 843 | #endif |
844 | BL sys_execve, %r2 | 844 | BL sys_execve, %r2 |
@@ -916,7 +916,7 @@ syscall_exit_rfi: | |||
916 | STREG %r19,PT_IAOQ1(%r16) | 916 | STREG %r19,PT_IAOQ1(%r16) |
917 | LDREG PT_PSW(%r16),%r19 | 917 | LDREG PT_PSW(%r16),%r19 |
918 | load32 USER_PSW_MASK,%r1 | 918 | load32 USER_PSW_MASK,%r1 |
919 | #ifdef __LP64__ | 919 | #ifdef CONFIG_64BIT |
920 | load32 USER_PSW_HI_MASK,%r20 | 920 | load32 USER_PSW_HI_MASK,%r20 |
921 | depd %r20,31,32,%r1 | 921 | depd %r20,31,32,%r1 |
922 | #endif | 922 | #endif |
@@ -960,7 +960,7 @@ intr_return: | |||
960 | /* shift left ____cacheline_aligned (aka L1_CACHE_BYTES) amount | 960 | /* shift left ____cacheline_aligned (aka L1_CACHE_BYTES) amount |
961 | ** irq_stat[] is defined using ____cacheline_aligned. | 961 | ** irq_stat[] is defined using ____cacheline_aligned. |
962 | */ | 962 | */ |
963 | #ifdef __LP64__ | 963 | #ifdef CONFIG_64BIT |
964 | shld %r1, 6, %r20 | 964 | shld %r1, 6, %r20 |
965 | #else | 965 | #else |
966 | shlw %r1, 5, %r20 | 966 | shlw %r1, 5, %r20 |
@@ -1018,7 +1018,7 @@ intr_restore: | |||
1018 | .import do_softirq,code | 1018 | .import do_softirq,code |
1019 | intr_do_softirq: | 1019 | intr_do_softirq: |
1020 | BL do_softirq,%r2 | 1020 | BL do_softirq,%r2 |
1021 | #ifdef __LP64__ | 1021 | #ifdef CONFIG_64BIT |
1022 | ldo -16(%r30),%r29 /* Reference param save area */ | 1022 | ldo -16(%r30),%r29 /* Reference param save area */ |
1023 | #else | 1023 | #else |
1024 | nop | 1024 | nop |
@@ -1036,7 +1036,7 @@ intr_do_resched: | |||
1036 | CMPIB= 0,%r20,intr_restore /* backward */ | 1036 | CMPIB= 0,%r20,intr_restore /* backward */ |
1037 | nop | 1037 | nop |
1038 | 1038 | ||
1039 | #ifdef __LP64__ | 1039 | #ifdef CONFIG_64BIT |
1040 | ldo -16(%r30),%r29 /* Reference param save area */ | 1040 | ldo -16(%r30),%r29 /* Reference param save area */ |
1041 | #endif | 1041 | #endif |
1042 | 1042 | ||
@@ -1069,7 +1069,7 @@ intr_do_signal: | |||
1069 | 1069 | ||
1070 | copy %r0, %r24 /* unsigned long in_syscall */ | 1070 | copy %r0, %r24 /* unsigned long in_syscall */ |
1071 | copy %r16, %r25 /* struct pt_regs *regs */ | 1071 | copy %r16, %r25 /* struct pt_regs *regs */ |
1072 | #ifdef __LP64__ | 1072 | #ifdef CONFIG_64BIT |
1073 | ldo -16(%r30),%r29 /* Reference param save area */ | 1073 | ldo -16(%r30),%r29 /* Reference param save area */ |
1074 | #endif | 1074 | #endif |
1075 | 1075 | ||
@@ -1093,7 +1093,7 @@ intr_extint: | |||
1093 | mfctl %cr31,%r1 | 1093 | mfctl %cr31,%r1 |
1094 | copy %r30,%r17 | 1094 | copy %r30,%r17 |
1095 | /* FIXME! depi below has hardcoded idea of interrupt stack size (32k)*/ | 1095 | /* FIXME! depi below has hardcoded idea of interrupt stack size (32k)*/ |
1096 | #ifdef __LP64__ | 1096 | #ifdef CONFIG_64BIT |
1097 | depdi 0,63,15,%r17 | 1097 | depdi 0,63,15,%r17 |
1098 | #else | 1098 | #else |
1099 | depi 0,31,15,%r17 | 1099 | depi 0,31,15,%r17 |
@@ -1120,7 +1120,7 @@ intr_extint: | |||
1120 | 1120 | ||
1121 | ldil L%intr_return, %r2 | 1121 | ldil L%intr_return, %r2 |
1122 | 1122 | ||
1123 | #ifdef __LP64__ | 1123 | #ifdef CONFIG_64BIT |
1124 | ldo -16(%r30),%r29 /* Reference param save area */ | 1124 | ldo -16(%r30),%r29 /* Reference param save area */ |
1125 | #endif | 1125 | #endif |
1126 | 1126 | ||
@@ -1164,7 +1164,7 @@ intr_save: | |||
1164 | mfctl %cr21, %r17 /* ior */ | 1164 | mfctl %cr21, %r17 /* ior */ |
1165 | 1165 | ||
1166 | 1166 | ||
1167 | #ifdef __LP64__ | 1167 | #ifdef CONFIG_64BIT |
1168 | /* | 1168 | /* |
1169 | * If the interrupted code was running with W bit off (32 bit), | 1169 | * If the interrupted code was running with W bit off (32 bit), |
1170 | * clear the b bits (bits 0 & 1) in the ior. | 1170 | * clear the b bits (bits 0 & 1) in the ior. |
@@ -1199,7 +1199,7 @@ skip_save_ior: | |||
1199 | loadgp | 1199 | loadgp |
1200 | 1200 | ||
1201 | copy %r29, %r25 /* arg1 is pt_regs */ | 1201 | copy %r29, %r25 /* arg1 is pt_regs */ |
1202 | #ifdef __LP64__ | 1202 | #ifdef CONFIG_64BIT |
1203 | ldo -16(%r30),%r29 /* Reference param save area */ | 1203 | ldo -16(%r30),%r29 /* Reference param save area */ |
1204 | #endif | 1204 | #endif |
1205 | 1205 | ||
@@ -1237,7 +1237,7 @@ skip_save_ior: | |||
1237 | spc = r24 /* space for which the trap occured */ | 1237 | spc = r24 /* space for which the trap occured */ |
1238 | ptp = r25 /* page directory/page table pointer */ | 1238 | ptp = r25 /* page directory/page table pointer */ |
1239 | 1239 | ||
1240 | #ifdef __LP64__ | 1240 | #ifdef CONFIG_64BIT |
1241 | 1241 | ||
1242 | dtlb_miss_20w: | 1242 | dtlb_miss_20w: |
1243 | space_adjust spc,va,t0 | 1243 | space_adjust spc,va,t0 |
@@ -1528,7 +1528,7 @@ nadtlb_probe_check: | |||
1528 | nop | 1528 | nop |
1529 | 1529 | ||
1530 | 1530 | ||
1531 | #ifdef __LP64__ | 1531 | #ifdef CONFIG_64BIT |
1532 | itlb_miss_20w: | 1532 | itlb_miss_20w: |
1533 | 1533 | ||
1534 | /* | 1534 | /* |
@@ -1595,7 +1595,7 @@ itlb_miss_20: | |||
1595 | 1595 | ||
1596 | #endif | 1596 | #endif |
1597 | 1597 | ||
1598 | #ifdef __LP64__ | 1598 | #ifdef CONFIG_64BIT |
1599 | 1599 | ||
1600 | dbit_trap_20w: | 1600 | dbit_trap_20w: |
1601 | space_adjust spc,va,t0 | 1601 | space_adjust spc,va,t0 |
@@ -1804,7 +1804,7 @@ sys_fork_wrapper: | |||
1804 | 1804 | ||
1805 | STREG %r2,-RP_OFFSET(%r30) | 1805 | STREG %r2,-RP_OFFSET(%r30) |
1806 | ldo FRAME_SIZE(%r30),%r30 | 1806 | ldo FRAME_SIZE(%r30),%r30 |
1807 | #ifdef __LP64__ | 1807 | #ifdef CONFIG_64BIT |
1808 | ldo -16(%r30),%r29 /* Reference param save area */ | 1808 | ldo -16(%r30),%r29 /* Reference param save area */ |
1809 | #endif | 1809 | #endif |
1810 | 1810 | ||
@@ -1854,7 +1854,7 @@ sys_clone_wrapper: | |||
1854 | 1854 | ||
1855 | STREG %r2,-RP_OFFSET(%r30) | 1855 | STREG %r2,-RP_OFFSET(%r30) |
1856 | ldo FRAME_SIZE(%r30),%r30 | 1856 | ldo FRAME_SIZE(%r30),%r30 |
1857 | #ifdef __LP64__ | 1857 | #ifdef CONFIG_64BIT |
1858 | ldo -16(%r30),%r29 /* Reference param save area */ | 1858 | ldo -16(%r30),%r29 /* Reference param save area */ |
1859 | #endif | 1859 | #endif |
1860 | 1860 | ||
@@ -1876,7 +1876,7 @@ sys_vfork_wrapper: | |||
1876 | 1876 | ||
1877 | STREG %r2,-RP_OFFSET(%r30) | 1877 | STREG %r2,-RP_OFFSET(%r30) |
1878 | ldo FRAME_SIZE(%r30),%r30 | 1878 | ldo FRAME_SIZE(%r30),%r30 |
1879 | #ifdef __LP64__ | 1879 | #ifdef CONFIG_64BIT |
1880 | ldo -16(%r30),%r29 /* Reference param save area */ | 1880 | ldo -16(%r30),%r29 /* Reference param save area */ |
1881 | #endif | 1881 | #endif |
1882 | 1882 | ||
@@ -1904,7 +1904,7 @@ sys_vfork_wrapper: | |||
1904 | 1904 | ||
1905 | STREG %r2,-RP_OFFSET(%r30) | 1905 | STREG %r2,-RP_OFFSET(%r30) |
1906 | ldo FRAME_SIZE(%r30),%r30 | 1906 | ldo FRAME_SIZE(%r30),%r30 |
1907 | #ifdef __LP64__ | 1907 | #ifdef CONFIG_64BIT |
1908 | ldo -16(%r30),%r29 /* Reference param save area */ | 1908 | ldo -16(%r30),%r29 /* Reference param save area */ |
1909 | #endif | 1909 | #endif |
1910 | BL \execve,%r2 | 1910 | BL \execve,%r2 |
@@ -1930,7 +1930,7 @@ error_\execve: | |||
1930 | sys_execve_wrapper: | 1930 | sys_execve_wrapper: |
1931 | execve_wrapper sys_execve | 1931 | execve_wrapper sys_execve |
1932 | 1932 | ||
1933 | #ifdef __LP64__ | 1933 | #ifdef CONFIG_64BIT |
1934 | .export sys32_execve_wrapper | 1934 | .export sys32_execve_wrapper |
1935 | .import sys32_execve | 1935 | .import sys32_execve |
1936 | 1936 | ||
@@ -1944,7 +1944,7 @@ sys_rt_sigreturn_wrapper: | |||
1944 | ldo TASK_REGS(%r26),%r26 /* get pt regs */ | 1944 | ldo TASK_REGS(%r26),%r26 /* get pt regs */ |
1945 | /* Don't save regs, we are going to restore them from sigcontext. */ | 1945 | /* Don't save regs, we are going to restore them from sigcontext. */ |
1946 | STREG %r2, -RP_OFFSET(%r30) | 1946 | STREG %r2, -RP_OFFSET(%r30) |
1947 | #ifdef __LP64__ | 1947 | #ifdef CONFIG_64BIT |
1948 | ldo FRAME_SIZE(%r30), %r30 | 1948 | ldo FRAME_SIZE(%r30), %r30 |
1949 | BL sys_rt_sigreturn,%r2 | 1949 | BL sys_rt_sigreturn,%r2 |
1950 | ldo -16(%r30),%r29 /* Reference param save area */ | 1950 | ldo -16(%r30),%r29 /* Reference param save area */ |
@@ -1975,7 +1975,7 @@ sys_sigaltstack_wrapper: | |||
1975 | ldo TASK_REGS(%r1),%r24 /* get pt regs */ | 1975 | ldo TASK_REGS(%r1),%r24 /* get pt regs */ |
1976 | LDREG TASK_PT_GR30(%r24),%r24 | 1976 | LDREG TASK_PT_GR30(%r24),%r24 |
1977 | STREG %r2, -RP_OFFSET(%r30) | 1977 | STREG %r2, -RP_OFFSET(%r30) |
1978 | #ifdef __LP64__ | 1978 | #ifdef CONFIG_64BIT |
1979 | ldo FRAME_SIZE(%r30), %r30 | 1979 | ldo FRAME_SIZE(%r30), %r30 |
1980 | b,l do_sigaltstack,%r2 | 1980 | b,l do_sigaltstack,%r2 |
1981 | ldo -16(%r30),%r29 /* Reference param save area */ | 1981 | ldo -16(%r30),%r29 /* Reference param save area */ |
@@ -1989,7 +1989,7 @@ sys_sigaltstack_wrapper: | |||
1989 | bv %r0(%r2) | 1989 | bv %r0(%r2) |
1990 | nop | 1990 | nop |
1991 | 1991 | ||
1992 | #ifdef __LP64__ | 1992 | #ifdef CONFIG_64BIT |
1993 | .export sys32_sigaltstack_wrapper | 1993 | .export sys32_sigaltstack_wrapper |
1994 | sys32_sigaltstack_wrapper: | 1994 | sys32_sigaltstack_wrapper: |
1995 | /* Get the user stack pointer */ | 1995 | /* Get the user stack pointer */ |
@@ -2013,7 +2013,7 @@ sys_rt_sigsuspend_wrapper: | |||
2013 | reg_save %r24 | 2013 | reg_save %r24 |
2014 | 2014 | ||
2015 | STREG %r2, -RP_OFFSET(%r30) | 2015 | STREG %r2, -RP_OFFSET(%r30) |
2016 | #ifdef __LP64__ | 2016 | #ifdef CONFIG_64BIT |
2017 | ldo FRAME_SIZE(%r30), %r30 | 2017 | ldo FRAME_SIZE(%r30), %r30 |
2018 | b,l sys_rt_sigsuspend,%r2 | 2018 | b,l sys_rt_sigsuspend,%r2 |
2019 | ldo -16(%r30),%r29 /* Reference param save area */ | 2019 | ldo -16(%r30),%r29 /* Reference param save area */ |
@@ -2086,7 +2086,7 @@ syscall_check_bh: | |||
2086 | ldw TI_CPU-THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r26 /* cpu # */ | 2086 | ldw TI_CPU-THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r26 /* cpu # */ |
2087 | 2087 | ||
2088 | /* shift left ____cacheline_aligned (aka L1_CACHE_BYTES) bits */ | 2088 | /* shift left ____cacheline_aligned (aka L1_CACHE_BYTES) bits */ |
2089 | #ifdef __LP64__ | 2089 | #ifdef CONFIG_64BIT |
2090 | shld %r26, 6, %r20 | 2090 | shld %r26, 6, %r20 |
2091 | #else | 2091 | #else |
2092 | shlw %r26, 5, %r20 | 2092 | shlw %r26, 5, %r20 |
@@ -2151,7 +2151,7 @@ syscall_restore: | |||
2151 | 2151 | ||
2152 | depi 3,31,2,%r31 /* ensure return to user mode. */ | 2152 | depi 3,31,2,%r31 /* ensure return to user mode. */ |
2153 | 2153 | ||
2154 | #ifdef __LP64__ | 2154 | #ifdef CONFIG_64BIT |
2155 | /* decide whether to reset the wide mode bit | 2155 | /* decide whether to reset the wide mode bit |
2156 | * | 2156 | * |
2157 | * For a syscall, the W bit is stored in the lowest bit | 2157 | * For a syscall, the W bit is stored in the lowest bit |
@@ -2247,7 +2247,7 @@ syscall_do_softirq: | |||
2247 | .import schedule,code | 2247 | .import schedule,code |
2248 | syscall_do_resched: | 2248 | syscall_do_resched: |
2249 | BL schedule,%r2 | 2249 | BL schedule,%r2 |
2250 | #ifdef __LP64__ | 2250 | #ifdef CONFIG_64BIT |
2251 | ldo -16(%r30),%r29 /* Reference param save area */ | 2251 | ldo -16(%r30),%r29 /* Reference param save area */ |
2252 | #else | 2252 | #else |
2253 | nop | 2253 | nop |
@@ -2267,7 +2267,7 @@ syscall_do_signal: | |||
2267 | 2267 | ||
2268 | ldi 1, %r24 /* unsigned long in_syscall */ | 2268 | ldi 1, %r24 /* unsigned long in_syscall */ |
2269 | 2269 | ||
2270 | #ifdef __LP64__ | 2270 | #ifdef CONFIG_64BIT |
2271 | ldo -16(%r30),%r29 /* Reference param save area */ | 2271 | ldo -16(%r30),%r29 /* Reference param save area */ |
2272 | #endif | 2272 | #endif |
2273 | BL do_signal,%r2 | 2273 | BL do_signal,%r2 |