summaryrefslogtreecommitdiff
path: root/arch/sparc/include
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-08-20 01:05:02 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2021-01-04 04:10:55 +0300
commitaf7652500b4c43643a8531b82974e97b1248a03a (patch)
treeb4a0363d42b4851bf59f8724aa92a99ac237d8c8 /arch/sparc/include
parentd17b9ec777d86c590a77a404565be5d6005f2fe2 (diff)
downloadlinux-af7652500b4c43643a8531b82974e97b1248a03a.tar.xz
sparc32: get rid of fake_swapper_regs
no reason to have ->kregs of initial thread set up in a special way - we can keep them on stack, same as for every other thread. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r--arch/sparc/include/asm/processor_32.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/processor_32.h b/arch/sparc/include/asm/processor_32.h
index 3c4bc2189092..d7b71d7bed1f 100644
--- a/arch/sparc/include/asm/processor_32.h
+++ b/arch/sparc/include/asm/processor_32.h
@@ -60,6 +60,7 @@ struct thread_struct {
#define INIT_THREAD { \
.flags = SPARC_FLAG_KTHREAD, \
.current_ds = KERNEL_DS, \
+ .kregs = (struct pt_regs *)(init_stack+THREAD_SIZE)-1 \
}
/* Do necessary setup to start up a newly executed thread. */