mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Fix CPU initialization for SMP
This was broken by the KASLR changes.
This commit is contained in:
parent
4bdd62939a
commit
3a4d3b15e3
Notes:
sideshowbarker
2024-07-18 08:02:09 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/3a4d3b15e35 Pull-request: https://github.com/SerenityOS/serenity/pull/9041
2 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ apic_ap_start32_2:
|
|||
|
||||
/* push the Processor pointer this CPU is going to use */
|
||||
movl (ap_cpu_init_processor_info_array - apic_ap_start)(%ebp), %eax
|
||||
addl kernel_load_base, %eax
|
||||
addl kernel_mapping_base, %eax
|
||||
movl 0(%eax, %esi, 4), %eax
|
||||
push %eax
|
||||
|
||||
|
|
|
@ -141,7 +141,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
|
||||
leaq kernel_load_base(%rip), %r8
|
||||
leaq kernel_mapping_base(%rip), %r8
|
||||
movq (%r8), %r8
|
||||
addq %r8, %rax
|
||||
movq 0(%rax, %rsi, 4), %rax
|
||||
|
|
Loading…
Reference in a new issue