-/* $OpenBSD: boot_flag.h,v 1.7 2020/05/25 15:31:59 kettenis Exp $ */
+/* $OpenBSD: boot_flag.h,v 1.8 2023/11/09 14:26:34 kn Exp $ */
/* $NetBSD: boot_flag.h,v 1.3 2001/07/01 02:56:21 gmcgarry Exp $ */
/*-
} __packed;
#define BOOTDATA_VERSION 1
-#define BOOTDATA_LEN_SOFTRAID 64
#define BOOTDATA_LEN_BOOTHOWTO 68
#endif /* _MACHINE_BOOT_FLAG_H_ */
-/* $OpenBSD: autoconf.c,v 1.144 2023/04/29 12:10:08 miod Exp $ */
+/* $OpenBSD: autoconf.c,v 1.145 2023/11/09 14:26:34 kn Exp $ */
/* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */
/*
ncpus = get_ncpus();
pmap_bootstrap(KERNBASE, (u_long)&end, nctx, ncpus);
- /*
- * This length check deliberately checks BOOTDATA_LEN_SOFTRAID
- * instead of BOOTDATA_LEN_BOOTHOWTO. See the ofwboot code
- * for an explanation.
- */
if (obd.version == BOOTDATA_VERSION &&
- obd.len >= BOOTDATA_LEN_SOFTRAID)
+ obd.len >= BOOTDATA_LEN_BOOTHOWTO)
boothowto = obd.boothowto;
#ifdef SUN4V
#endif
if (obd.version == BOOTDATA_VERSION &&
- obd.len >= BOOTDATA_LEN_SOFTRAID) {
+ obd.len >= BOOTDATA_LEN_BOOTHOWTO) {
#if NSOFTRAID > 0
memcpy(sr_bootuuid.sui_id, obd.sr_uuid,
sizeof(sr_bootuuid.sui_id));
-/* $OpenBSD: elf64_exec.c,v 1.17 2023/10/06 09:34:19 kn Exp $ */
+/* $OpenBSD: elf64_exec.c,v 1.18 2023/11/09 14:26:34 kn Exp $ */
/* $NetBSD: elfXX_exec.c,v 1.2 2001/08/15 20:08:15 eeh Exp $ */
/*
if (phdr.p_type == PT_OPENBSD_BOOTDATA) {
memset((void *) (long)phdr.p_paddr, 0, phdr.p_filesz);
- if (phdr.p_filesz < BOOTDATA_LEN_SOFTRAID)
+ if (phdr.p_filesz < BOOTDATA_LEN_BOOTHOWTO)
continue;
obd = (struct openbsd_bootdata *)(long)phdr.p_paddr;