From: anton Date: Thu, 30 Jun 2022 15:46:57 +0000 (+0000) Subject: As we now have two bios_consdev_t structures, make use of the old one X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3c70284641c54bb74419b9ddbc1d8fa7627ce42e;p=openbsd As we now have two bios_consdev_t structures, make use of the old one until the bootstrap populates the new structure. Found the hard way by Hrvoje Popovski. ok kettenis@ --- diff --git a/sys/arch/amd64/stand/efiboot/exec_i386.c b/sys/arch/amd64/stand/efiboot/exec_i386.c index ea8fa67820b..08f68c32dcb 100644 --- a/sys/arch/amd64/stand/efiboot/exec_i386.c +++ b/sys/arch/amd64/stand/efiboot/exec_i386.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_i386.c,v 1.7 2021/10/24 17:49:19 deraadt Exp $ */ +/* $OpenBSD: exec_i386.c,v 1.8 2022/06/30 15:46:57 anton Exp $ */ /* * Copyright (c) 1997-1998 Michael Shalayeff @@ -72,7 +72,7 @@ run_loadfile(uint64_t *marks, int howto) dev_t bootdev = bootdev_dip->bootdev; size_t ac = BOOTARG_LEN; caddr_t av = (caddr_t)BOOTARG_OFF; - bios_consdev_t cd; + bios_oconsdev_t cd; extern int com_speed; /* from bioscons.c */ extern int com_addr; bios_ddb_t ddb; diff --git a/sys/arch/amd64/stand/libsa/exec_i386.c b/sys/arch/amd64/stand/libsa/exec_i386.c index 22067931829..f5900bcdc37 100644 --- a/sys/arch/amd64/stand/libsa/exec_i386.c +++ b/sys/arch/amd64/stand/libsa/exec_i386.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_i386.c,v 1.35 2021/10/24 17:49:19 deraadt Exp $ */ +/* $OpenBSD: exec_i386.c,v 1.36 2022/06/30 15:46:57 anton Exp $ */ /* * Copyright (c) 1997-1998 Michael Shalayeff @@ -91,7 +91,7 @@ run_loadfile(uint64_t *marks, int howto) dev_t bootdev = bootdev_dip->bootdev; size_t ac = BOOTARG_LEN; caddr_t av = (caddr_t)BOOTARG_OFF; - bios_consdev_t cd; + bios_oconsdev_t cd; extern int com_speed; /* from bioscons.c */ extern int com_addr; bios_ddb_t ddb;