bootasm.S: remove redundant A20 enable code
This commit is contained in:
parent
8a6deabc73
commit
fe2e2c2f1d
@ -206,7 +206,7 @@ TERMINAL :=gnome-terminal
|
|||||||
debug: $(UCOREIMG)
|
debug: $(UCOREIMG)
|
||||||
$(V)$(QEMU) -S -s -parallel stdio -hda $< -serial null &
|
$(V)$(QEMU) -S -s -parallel stdio -hda $< -serial null &
|
||||||
$(V)sleep 2
|
$(V)sleep 2
|
||||||
$(V)$(TERMINAL) -e "gdb -q -x tools/gdbinit"
|
$(V)$(TERMINAL) -e "gdb -q -tui -x tools/gdbinit"
|
||||||
|
|
||||||
debug-nox: $(UCOREIMG)
|
debug-nox: $(UCOREIMG)
|
||||||
$(V)$(QEMU) -S -s -serial mon:stdio -hda $< -nographic &
|
$(V)$(QEMU) -S -s -serial mon:stdio -hda $< -nographic &
|
||||||
|
@ -42,9 +42,6 @@ seta20.2:
|
|||||||
movb $0xdf, %al # 0xdf -> port 0x60
|
movb $0xdf, %al # 0xdf -> port 0x60
|
||||||
outb %al, $0x60 # 0xdf = 11011111, means set P2's A20 bit(the 1 bit) to 1
|
outb %al, $0x60 # 0xdf = 11011111, means set P2's A20 bit(the 1 bit) to 1
|
||||||
|
|
||||||
movb $0xdf, %al # 0xdf -> port 0x60, do it again!
|
|
||||||
outb %al, $0x60 # 0xdf = 11011111, means set P2's A20 bit(the 1 bit) to 1
|
|
||||||
|
|
||||||
# Switch from real to protected mode, using a bootstrap GDT
|
# Switch from real to protected mode, using a bootstrap GDT
|
||||||
# and segment translation that makes virtual addresses
|
# and segment translation that makes virtual addresses
|
||||||
# identical to physical addresses, so that the
|
# identical to physical addresses, so that the
|
||||||
|
Loading…
Reference in New Issue
Block a user