Skip to content

Commit 3912482

Browse files
committed
[FREELDR] Use the OFF(x) macro on realmode assembly files
1 parent 3085df8 commit 3912482

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,7 @@ gdt:
116116
/* GDT table pointer */
117117
gdtptr:
118118
.word HEX(37) /* Limit */
119-
#ifdef _USE_ML
120-
.long offset gdt /* Base Address */
121-
#else
122-
.long gdt /* Base Address */
123-
#endif
119+
.long OFF(gdt) /* Base Address */
124120

125121

126122
CheckFor64BitSupport:

boot/freeldr/freeldr/arch/realmode/i386.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ gdt:
191191
/* GDT table pointer */
192192
gdtptr:
193193
.word HEX(27) /* Limit */
194-
.word gdt, 0 /* Base Address */
194+
.long OFF(gdt) /* Base Address */
195195

196196
/* Real-mode IDT pointer */
197197
rmode_idtptr:

0 commit comments

Comments
 (0)