kernel: pin _kernel variable in case of paging
Exception handler(arch/x86/core/ia32/excstub.S) may access _kernel variable, it will lead to failure when enabled paging, so make this critical variable pinned. Signed-off-by: Qipeng Zha <qipeng.zha@intel.com>
This commit is contained in:
parent
4d4900c311
commit
fa973d1b7b
1 changed files with 1 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ BUILD_ASSERT(CONFIG_MP_NUM_CPUS == CONFIG_MP_MAX_NUM_CPUS,
|
||||||
"CONFIG_MP_NUM_CPUS and CONFIG_MP_MAX_NUM_CPUS need to be set the same");
|
"CONFIG_MP_NUM_CPUS and CONFIG_MP_MAX_NUM_CPUS need to be set the same");
|
||||||
|
|
||||||
/* the only struct z_kernel instance */
|
/* the only struct z_kernel instance */
|
||||||
|
__pinned_bss
|
||||||
struct z_kernel _kernel;
|
struct z_kernel _kernel;
|
||||||
|
|
||||||
/* init/main and idle threads */
|
/* init/main and idle threads */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue