Browse Source

bootasm.S: remove redundant A20 enable code

main
chyyuu 11 years ago
parent
commit
fe2e2c2f1d
2 changed files with 1 additions and 4 deletions
  1. +1
    -1
      code/lab1/Makefile
  2. +0
    -3
      code/lab1/boot/bootasm.S

+ 1
- 1
code/lab1/Makefile View File

@ -206,7 +206,7 @@ TERMINAL :=gnome-terminal
debug: $(UCOREIMG)
$(V)$(QEMU) -S -s -parallel stdio -hda $< -serial null &
$(V)sleep 2
$(V)$(TERMINAL) -e "gdb -q -x tools/gdbinit"
$(V)$(TERMINAL) -e "gdb -q -tui -x tools/gdbinit"
debug-nox: $(UCOREIMG)
$(V)$(QEMU) -S -s -serial mon:stdio -hda $< -nographic &

+ 0
- 3
code/lab1/boot/bootasm.S View File

@ -42,9 +42,6 @@ seta20.2:
movb $0xdf, %al # 0xdf -> port 0x60
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
# and segment translation that makes virtual addresses
# identical to physical addresses, so that the

Loading…
Cancel
Save