Skip to content
Commit 53c99bd6 authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

init: add arch_call_rest_init to allow stack switching



With CONFIG_VMAP_STACK=y the kernel stack of all tasks should be
allocated in the vmalloc space. The initial stack used for all
the early init code is in the init_thread_union. To be able to
switch from this early stack to a properly allocated stack
from vmalloc the architecture needs a switch-over point.

Introduce the arch_call_rest_init() function with a weak definition
in init/main.c with the only purpose to call rest_init() from the
end of start_kernel(). The architecture override can then do the
necessary magic to switch to the new vmalloc'ed stack.

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 00e9e664
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment