Skip to content

Commit d72864d

Browse files
iLauncherDevtkreuzer
authored andcommitted
[FREELDR] Fix wrong segment register at lgdt instruction in amd64.S
1 parent 2186ce3 commit d72864d

File tree

1 file changed

+1
-5
lines changed
  • boot/freeldr/freeldr/arch/realmode

1 file changed

+1
-5
lines changed

boot/freeldr/freeldr/arch/realmode/amd64.S

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ Msg_LongModeSupported:
6767
call writestr
6868

6969
/* Load the GDT */
70-
#ifdef _USE_ML
71-
lgdt fword ptr [gdtptr]
72-
#else
73-
lgdt cs:[gdtptr]
74-
#endif
70+
lgdt lXdtPrefix ds:[gdtptr]
7571

7672
/* Build the startup page tables */
7773
call BuildPageTables

0 commit comments

Comments
 (0)