diff --git a/code/lab1/Makefile b/code/lab1/Makefile index a828239..66d1e94 100644 --- a/code/lab1/Makefile +++ b/code/lab1/Makefile @@ -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 & diff --git a/code/lab1/boot/bootasm.S b/code/lab1/boot/bootasm.S index 8db1909..3e64e21 100644 --- a/code/lab1/boot/bootasm.S +++ b/code/lab1/boot/bootasm.S @@ -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