.equ BLOCK_MASK, 0x01ff\r
.equ BLOCK_SHIFT, 9\r
\r
- .org 0x00
-.global _start
+ .org 0x00\r
+ASM_GLOBAL _start\r
_start:\r
Ia32Jump: \r
jmp BootSectorEntryPoint # JMP inst - 3 bytes\r
\r
.align 0x2\r
\r
-.global GDT_BASE\r
+ASM_GLOBAL GDT_BASE\r
GDT_BASE: \r
# null descriptor\r
.equ NULL_SEL, .-GDT_BASE\r
#idt_tag db "IDT",0 \r
.align 0x2\r
\r
-.global IDT_BASE\r
+ASM_GLOBAL IDT_BASE\r
IDT_BASE: \r
# divide by zero (INT 0)\r
.equ DIV_ZERO_SEL, .-IDT_BASE\r