diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-08-20 00:05:02 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-01-04 02:10:55 +0100 |
commit | af7652500b4c43643a8531b82974e97b1248a03a (patch) | |
tree | b4a0363d42b4851bf59f8724aa92a99ac237d8c8 /arch/sparc/include/asm | |
parent | sparc64: get rid of fake_swapper_regs (diff) | |
download | linux-af7652500b4c43643a8531b82974e97b1248a03a.tar.xz linux-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')
-rw-r--r-- | arch/sparc/include/asm/processor_32.h | 1 |
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. */ |