1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 20:57:44 +00:00

Kernel: Get rid of of some of the duplicate kernel base address macros

This commit is contained in:
Gunnar Beutner 2021-07-05 01:20:34 +02:00 committed by Andreas Kling
parent 040fe0054b
commit 8c14488106
4 changed files with 34 additions and 32 deletions

View file

@ -1,4 +1,5 @@
.set KERNEL_VIRTUAL_BASE, 0xc0000000
#define _BOOTLOADER
#include <Kernel/Sections.h>
.extern init_ap
.type init_ap, @function
@ -124,7 +125,7 @@ apic_ap_start64:
/* push the Processor pointer this CPU is going to use */
movq (ap_cpu_init_processor_info_array - apic_ap_start)(%ebp), %rax
movq $KERNEL_VIRTUAL_BASE, %r8
movq $KERNEL_BASE, %r8
addq %r8, %rax
movq 0(%rax, %rsi, 4), %rax
push %rax