-- 
Regards
Vladimir 'phcoder' Serbinenko
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
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to