Skip to contentSkip to conversation

Fix boot on efi 32 bit Machines [try #3]

PATCH New Edgar Hucek 1 participant 1 message Jun 25, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix boot on efi 32 bit Machines [try #3]

Fix EFI boot on 32 bit machines with pcie port.
Efi machines does not have an e820 memory map.
This bug makes native efi boots on Intel Mac's
impossible.
[try #3] simplified the patch.

arch/i386/kernel/setup.c +4 -0
@@ -975,6 +975,10 @@
 	u64 start = s;
 	u64 end = e;
 	int i;
+
+	if (efi_enabled)
+		return 1;
+
 	for (i = 0; i < e820.nr_map; i++) {
 		struct e820entry *ei = &e820.map[i];
 		if (type && ei->type != type)