diff options
author | Helge Deller <deller@gmx.de> | 2018-08-16 16:36:26 -0400 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2018-08-17 10:45:41 -0400 |
commit | 54c770da992387abfa7df4817404d000ef034fa8 (patch) | |
tree | 9b0ee831c9e12dca09ed6f4599ee0a7f56b9bb53 | |
parent | b6fc0cccb6b35815a7d1cfc9279cdbfc2c61d00d (diff) |
parisc: Update comments in syscall.S regarding wide userland
We do support running 64-bit userspace processes, although there isn't
yet full gcc and glibc support. Anyway, fix the comments to reflect the
reality.
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | arch/parisc/kernel/syscall.S | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S index be451766e9d0..f453997a7b8f 100644 --- a/arch/parisc/kernel/syscall.S +++ b/arch/parisc/kernel/syscall.S | |||
@@ -108,12 +108,8 @@ linux_gateway_entry: | |||
108 | mtsp %r0,%sr6 /* get kernel space into sr6 */ | 108 | mtsp %r0,%sr6 /* get kernel space into sr6 */ |
109 | 109 | ||
110 | #ifdef CONFIG_64BIT | 110 | #ifdef CONFIG_64BIT |
111 | /* for now we can *always* set the W bit on entry to the syscall | 111 | /* Store W bit on entry to the syscall in case it's a wide userland |
112 | * since we don't support wide userland processes. We could | 112 | * process. */ |
113 | * also save the current SM other than in r0 and restore it on | ||
114 | * exit from the syscall, and also use that value to know | ||
115 | * whether to do narrow or wide syscalls. -PB | ||
116 | */ | ||
117 | ssm PSW_SM_W, %r1 | 113 | ssm PSW_SM_W, %r1 |
118 | extrd,u %r1,PSW_W_BIT,1,%r1 | 114 | extrd,u %r1,PSW_W_BIT,1,%r1 |
119 | /* sp must be aligned on 4, so deposit the W bit setting into | 115 | /* sp must be aligned on 4, so deposit the W bit setting into |
@@ -478,16 +474,13 @@ tracesys_sigexit: | |||
478 | lws_start: | 474 | lws_start: |
479 | 475 | ||
480 | #ifdef CONFIG_64BIT | 476 | #ifdef CONFIG_64BIT |
481 | /* FIXME: If we are a 64-bit kernel just | ||
482 | * turn this on unconditionally. | ||
483 | */ | ||
484 | ssm PSW_SM_W, %r1 | 477 | ssm PSW_SM_W, %r1 |
485 | extrd,u %r1,PSW_W_BIT,1,%r1 | 478 | extrd,u %r1,PSW_W_BIT,1,%r1 |
486 | /* sp must be aligned on 4, so deposit the W bit setting into | 479 | /* sp must be aligned on 4, so deposit the W bit setting into |
487 | * the bottom of sp temporarily */ | 480 | * the bottom of sp temporarily */ |
488 | or,ev %r1,%r30,%r30 | 481 | or,ev %r1,%r30,%r30 |
489 | 482 | ||
490 | /* Clip LWS number to a 32-bit value always */ | 483 | /* Clip LWS number to a 32-bit value for 32-bit processes */ |
491 | depdi 0, 31, 32, %r20 | 484 | depdi 0, 31, 32, %r20 |
492 | #endif | 485 | #endif |
493 | 486 | ||