Where does the linux kernel put local variables
Rock Lee
rocklee_104 at outlook.com
Tue Aug 4 07:00:24 EDT 2015
Hi, Dave
>
> If you look at the linker script file for the kernel
> http://lxr.free-electrons.com/source/arch/arm/kernel/vmlinux.lds.S#L244
> , you'll see that INIT_TASK_DATA (which includes the kernel stack) is
> between _data and _edata. This is the stack used for kernel booting and
> then taken over by the init task.
Thanks for your advice ,after read
http://lxr.free-electrons.com/source/arch/arm/kernel/head-common.S#L122,
I'v got my answer.
--
Rock Lee
More information about the Kernelnewbies
mailing list