# be done to maintain the consistency of the size\r
# of entry points...\r
.byte 0xe9 # jmp 16 bit relative\r
- .long commonIdtEntry - . - 4 # A problem \r
+ .long commonIdtEntry - . - 4 # offset to jump to \r
.endm\r
\r
Start: \r
movl (Idtr + 2), %esi\r
movl (%esi), %edi\r
\r
-LOOP_1: # loop through all IDT entries exception handlers and initialize to default handler\r
+LOOP_1: # loop through all IDT entries exception handlers and initialize to default handler\r
movw %bx, (%edi) # write bits 15..0 of offset\r
movw $0x20, 2(%edi) # SYS_CODE_SEL from GDT\r
movw $(0x0e00 | 0x8000), 4(%edi) # type = 386 interrupt gate, present\r
cmpw $0, %bx\r
jne SectionLoop\r
\r
- movzwl (Idtr), %eax # get size of IDT\r
+ movzwl (Idtr), %eax # get size of IDT\r
incl %eax\r
- addl 2(Idtr), %eax # add to base of IDT to get location of memory map... \r
+ addl (Idtr + 2), %eax # add to base of IDT to get location of memory map... \r
pushl %eax # push memory map location on stack for call to EFILDR...\r
\r
pushl %eax # push return address (useless, just for stack balance)\r