summaryrefslogtreecommitdiff
path: root/arch/sparc/lib
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2022-02-11 19:19:14 +0300
committerArnd Bergmann <arnd@arndb.de>2022-02-25 11:36:06 +0300
commita5ad837843b63d4f0d90b5cd74dc8bc25a291cfd (patch)
tree47e2d070e3cc549ab8c5cd43961f4630156a85d6 /arch/sparc/lib
parent5a06fcb15b43d1f7bf740c672950122331cb5655 (diff)
downloadlinux-a5ad837843b63d4f0d90b5cd74dc8bc25a291cfd.tar.xz
sparc64: remove CONFIG_SET_FS support
sparc64 uses address space identifiers to differentiate between kernel and user space, using ASI_P for kernel threads but ASI_AIUS for normal user space, with the option of changing between them. As nothing really changes the ASI any more, just hardcode ASI_AIUS everywhere. Kernel threads are not allowed to access __user pointers anyway. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/sparc/lib')
-rw-r--r--arch/sparc/lib/NGmemcpy.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/lib/NGmemcpy.S b/arch/sparc/lib/NGmemcpy.S
index 8e4d22a6ba0b..ee51c1230689 100644
--- a/arch/sparc/lib/NGmemcpy.S
+++ b/arch/sparc/lib/NGmemcpy.S
@@ -10,8 +10,7 @@
#include <asm/thread_info.h>
#define GLOBAL_SPARE %g7
#define RESTORE_ASI(TMP) \
- ldub [%g6 + TI_CURRENT_DS], TMP; \
- wr TMP, 0x0, %asi;
+ wr %g0, ASI_AIUS, %asi
#else
#define GLOBAL_SPARE %g5
#define RESTORE_ASI(TMP) \