diff --git a/hypervisor/boot/guest/direct_boot.c b/hypervisor/boot/guest/direct_boot.c index 210b0bdcc..d54636fd0 100644 --- a/hypervisor/boot/guest/direct_boot.c +++ b/hypervisor/boot/guest/direct_boot.c @@ -11,15 +11,18 @@ #include #include +/* AP trampoline code buffer base address. */ +static uint64_t ap_trampoline_buf; + static void init_direct_boot(void) { - /* nothing to do for now */ + ap_trampoline_buf = e820_alloc_low_memory(CONFIG_LOW_RAM_SIZE); } /* @post: return != 0UL */ static uint64_t get_direct_boot_ap_trampoline(void) { - return e820_alloc_low_memory(CONFIG_LOW_RAM_SIZE); + return ap_trampoline_buf; } static void* get_direct_boot_rsdp(void)