diff options
author | Brandon Creighton <bjc@cvs.openbsd.org> | 2001-09-10 04:28:53 +0000 |
---|---|---|
committer | Brandon Creighton <bjc@cvs.openbsd.org> | 2001-09-10 04:28:53 +0000 |
commit | 3d8a07c4d7807081d3e435f655dfe9d5b86f697a (patch) | |
tree | 4ddace0a8d619e60be37a1bf94864a85c72d67a4 /sys/arch/vax/stand | |
parent | 67a6fd4eb74dbda46b6c9b0f09924a3383653a14 (diff) |
Change askname to volatile; this prevents it from being trashed by
the setjmp/longjmp hack in place for VAX_BTYP_4[689]. This solves
the /boot problem which prevented automatic boots from happening
when the timer ran down.
Diffstat (limited to 'sys/arch/vax/stand')
-rw-r--r-- | sys/arch/vax/stand/boot/boot.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/vax/stand/boot/boot.c b/sys/arch/vax/stand/boot/boot.c index 0a4f42f0195..1a379791eeb 100644 --- a/sys/arch/vax/stand/boot/boot.c +++ b/sys/arch/vax/stand/boot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.6 2001/08/25 13:46:36 hugh Exp $ */ +/* $OpenBSD: boot.c,v 1.7 2001/09/10 04:28:52 bjc Exp $ */ /* $NetBSD: boot.c,v 1.4 1999/10/23 14:42:22 ragge Exp $ */ /*- * Copyright (c) 1982, 1986 The Regents of the University of California. @@ -82,8 +82,9 @@ int sluttid, senast, skip; Xmain() { - int io, type, askname, filindex = 0; + int io, type, filindex = 0; int j, nu; + volatile int askname; /* make sure the rpb is out of the way so it does not get trampled; * this will be the case if booting from net |