diff options
author | 2001-07-29 23:13:28 +0000 | |
---|---|---|
committer | 2001-07-29 23:13:28 +0000 | |
commit | e051617c1cee6c9c9d8a14b28096e723987a970f (patch) | |
tree | e0c3a0ce67ad5b153e95a84d107499834cfb871d | |
parent | linux mods (diff) | |
download | wireguard-openbsd-e051617c1cee6c9c9d8a14b28096e723987a970f.tar.xz wireguard-openbsd-e051617c1cee6c9c9d8a14b28096e723987a970f.zip |
Temporarily fix wscninit so that it only runs once.
Somebody should fix the boot-up logic so it's only called once
-rw-r--r-- | sys/arch/i386/i386/wscons_machdep.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/wscons_machdep.c b/sys/arch/i386/i386/wscons_machdep.c index 7dfcd9ed95e..91f2163882f 100644 --- a/sys/arch/i386/i386/wscons_machdep.c +++ b/sys/arch/i386/i386/wscons_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wscons_machdep.c,v 1.6 2001/07/26 07:09:12 csapuntz Exp $ */ +/* $OpenBSD: wscons_machdep.c,v 1.7 2001/07/29 23:13:28 csapuntz Exp $ */ /* * Copyright (c) 2001 Aaron Campbell @@ -116,6 +116,13 @@ void wscninit(cp) struct consdev *cp; { + static int initted; + + if (initted) + return; + + initted = 1; + #if (NVGA > 0) || (NEGA > 0) || (NPCDISPLAY > 0) #if (NVGA > 0) if (!vga_cnattach(I386_BUS_SPACE_IO, I386_BUS_SPACE_MEM, -1, 1)) |