Enable A20.
This commit is contained in:
parent
7e678618d1
commit
e40bde036d
3
mbr.S
3
mbr.S
@ -54,6 +54,9 @@ bios_disk_read:
|
|||||||
|
|
||||||
|
|
||||||
switch_to_32bit:
|
switch_to_32bit:
|
||||||
|
mov $2, %al
|
||||||
|
out %al, $0x92 // enable A20
|
||||||
|
|
||||||
cli // 1. disable interrupts
|
cli // 1. disable interrupts
|
||||||
lgdt gdt_descriptor // 2. load GDT descriptor
|
lgdt gdt_descriptor // 2. load GDT descriptor
|
||||||
mov %cr0, %eax
|
mov %cr0, %eax
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user