Skip to content

Commit 964c17c

Browse files
committed
Protected mode is already enabled
1 parent a96fcbb commit 964c17c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stage_3.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ enable_paging:
105105

106106
# enable paging in the cr0 register
107107
mov eax, cr0
108-
or eax, ((1 << 31) | 1)
108+
or eax, (1 << 31)
109109
mov cr0, eax
110110

111111
load_64bit_gdt:

0 commit comments

Comments
 (0)