x86: disable zero mapping and add a boot pt for ap trampoline

the application processor trampoline needs the trampoline physical
address to be mapped for the few instructions between loading the
page table and jumping to normal memory area; setup a new pt for them.

Also make it use its stack where it needs to be directly.

With that, x86 can finally remove the 0 page from its init mapping

Change-Id: Iab3f33a2ed22570eeb47b5ab6e068c9a17c25413
This commit is contained in:
Dominique Martinet
2019-02-06 16:55:14 +09:00
committed by Dominique Martinet
parent c59d8db1b3
commit 21cf953a03
4 changed files with 23 additions and 4 deletions

View File

@@ -50,6 +50,7 @@ struct x86_cpu_local_variables {
struct x86_cpu_local_variables *get_x86_cpu_local_variable(int id);
struct x86_cpu_local_variables *get_x86_this_cpu_local(void);
void *get_x86_cpu_local_kstack(int id);
void *get_x86_this_cpu_kstack(void);