Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/stand/efiboot Do not pass BIOS geometry when b...



details:   https://anonhg.NetBSD.org/src/rev/4bfb716f9163
branches:  trunk
changeset: 1026310:4bfb716f9163
user:      manu <manu%NetBSD.org@localhost>
date:      Thu Nov 18 16:17:40 2021 +0000

description:
Do not pass BIOS geometry when booting using EFI

Recent Mac return garbage data that will crash the code handling it,
and EFI boot does not need it anyway.

diffstat:

 sys/arch/i386/stand/efiboot/Makefile.efiboot |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 8b02ff7179b8 -r 4bfb716f9163 sys/arch/i386/stand/efiboot/Makefile.efiboot
--- a/sys/arch/i386/stand/efiboot/Makefile.efiboot      Thu Nov 18 15:03:19 2021 +0000
+++ b/sys/arch/i386/stand/efiboot/Makefile.efiboot      Thu Nov 18 16:17:40 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.efiboot,v 1.18 2020/09/06 07:20:29 mrg Exp $
+# $NetBSD: Makefile.efiboot,v 1.19 2021/11/18 16:17:40 manu Exp $
 
 S=             ${.CURDIR}/../../../../..
 
@@ -66,7 +66,8 @@
 CPPFLAGS+= -DSUPPORT_DHCP
 CPPFLAGS+= -DSUPPORT_NFS
 CPPFLAGS+= -DSUPPORT_TFTP
-CPPFLAGS+= -DPASS_BIOSGEOM
+# Recent macs report garbage geometry
+#CPPFLAGS+= -DPASS_BIOSGEOM
 CPPFLAGS+= -DBIOSDISK_DEFAULT_SECSIZE=2048     # for bootinfo_biosgeom.c
 CPPFLAGS+= -DLIBSA_ENABLE_LS_OP
 



Home | Main Index | Thread Index | Old Index