mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 21:27:36 +00:00
Kernel: Get rid of of some of the duplicate kernel base address macros
This commit is contained in:
parent
040fe0054b
commit
8c14488106
4 changed files with 34 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue