Initial commit
This commit is contained in:
13
code/ap_boot_real_prepare.asm
Normal file
13
code/ap_boot_real_prepare.asm
Normal file
@ -0,0 +1,13 @@
|
||||
; This section has to be compiled for 16-bit real mode
|
||||
boot_ap:
|
||||
; Disable interrupts
|
||||
cli
|
||||
|
||||
; Enable A20 address line
|
||||
in al, 0x92
|
||||
or al, 2
|
||||
out 0x92, al
|
||||
|
||||
; Load the temporary GDT required for the far jump into protected mode.
|
||||
lgdt [tmp_gdt_desc - boot_ap + 0x8000]
|
||||
|
||||
Reference in New Issue
Block a user