aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/processor_32.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-08-19 18:05:02 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2021-01-03 20:10:55 -0500
commitaf7652500b4c43643a8531b82974e97b1248a03a (patch)
treeb4a0363d42b4851bf59f8724aa92a99ac237d8c8 /arch/sparc/include/asm/processor_32.h
parentsparc64: get rid of fake_swapper_regs (diff)
downloadlinux-dev-af7652500b4c43643a8531b82974e97b1248a03a.tar.xz
linux-dev-af7652500b4c43643a8531b82974e97b1248a03a.zip
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/asm/processor_32.h')
-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. */