This commit is contained in:
Robert Morris 2016-08-10 12:06:02 -04:00
parent 3431cd4927
commit 241188276c
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ seta20.2:
movl %eax, %cr0
//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
# translation, so that the mapping is still the identity mapping.
ljmp $(SEG_KCODE<<3), $start32

View file

@ -38,12 +38,12 @@ start:
orl $CR0_PE, %eax
movl %eax, %cr0
//PAGEBREAK!
# 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
# translation, so that the mapping is still the identity mapping.
ljmpl $(SEG_KCODE<<3), $(start32)
//PAGEBREAK!
.code32 # Tell assembler to generate 32-bit code now.
start32:
# Set up the protected-mode data segment registers