diff --git a/kern/i386/pc/startup.S b/kern/i386/pc/startup.S index 6cdc79a..0a2a174 100644 --- a/kern/i386/pc/startup.S +++ b/kern/i386/pc/startup.S @@ -1120,6 +1120,16 @@ FUNCTION(grub_get_mmap_entry) xnosmap: xorl %ecx, %ecx +/* Apple's cc jumps few bytes before the correct label in this context. Hence nops */ +#ifdef APPLE_CC + nop + nop + nop + nop + nop + nop +#endif + xsmap: DATA32 call real_to_prot .code32