Code: Select all
/* setup level 3 - need 4 entries at top & bottom */
movl boot_pg - KERNEL_VMA + 0x1000, %edi /*address of level 3
leal 0x1007(%edi), %eax
movl $4, %ecx
1: movl %eax, %edi /*identity map*/
movl %eax, 4088(%edi) /*higher-half*/
addl $0x1000, %eax
addl $8, %edi
decl %ecx
jnz 1b
I attached the rest of the code, and, on the off chance it might help, my linker script (I've been skirting around relocation truncation problems, perhaps that would add to this).
I googled the error, but didn't find anything helpful, nor did I find anything in the manual that indicated local labels were behavior you could turn on and off.
Any help would be greatly appreciated.