提交 24118827 创建 作者: Robert Morris's avatar Robert Morris

nits

上级 3431cd49
...@@ -45,7 +45,7 @@ seta20.2: ...@@ -45,7 +45,7 @@ seta20.2:
movl %eax, %cr0 movl %eax, %cr0
//PAGEBREAK! //PAGEBREAK!
# Complete transition to 32-bit protected mode by using long jmp # Complete the transition to 32-bit protected mode by using a long jmp
# to reload %cs and %eip. The segment descriptors are set up with no # to reload %cs and %eip. The segment descriptors are set up with no
# translation, so that the mapping is still the identity mapping. # translation, so that the mapping is still the identity mapping.
ljmp $(SEG_KCODE<<3), $start32 ljmp $(SEG_KCODE<<3), $start32
......
...@@ -38,12 +38,12 @@ start: ...@@ -38,12 +38,12 @@ start:
orl $CR0_PE, %eax orl $CR0_PE, %eax
movl %eax, %cr0 movl %eax, %cr0
//PAGEBREAK!
# Complete the transition to 32-bit protected mode by using a long jmp # Complete the transition to 32-bit protected mode by using a long jmp
# to reload %cs and %eip. The segment descriptors are set up with no # to reload %cs and %eip. The segment descriptors are set up with no
# translation, so that the mapping is still the identity mapping. # translation, so that the mapping is still the identity mapping.
ljmpl $(SEG_KCODE<<3), $(start32) ljmpl $(SEG_KCODE<<3), $(start32)
//PAGEBREAK!
.code32 # Tell assembler to generate 32-bit code now. .code32 # Tell assembler to generate 32-bit code now.
start32: start32:
# Set up the protected-mode data segment registers # Set up the protected-mode data segment registers
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论