summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-01-25 21:37:16 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-01-25 21:37:16 +0000
commitf8ad39edd040c91c28a1e15aa12b3e82ef55b00b (patch)
treeddc3358c03193921e02b3fd24d7d0b832918a8a7 /sys
parent71e1ec1869724492506b43fe04c24368515c372c (diff)
see if we are a console
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/dev/sti_sgc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/hppa/dev/sti_sgc.c b/sys/arch/hppa/dev/sti_sgc.c
index e1edbe3d51e..6c27011f7ed 100644
--- a/sys/arch/hppa/dev/sti_sgc.c
+++ b/sys/arch/hppa/dev/sti_sgc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sti_sgc.c,v 1.7 2001/11/06 19:53:14 miod Exp $ */
+/* $OpenBSD: sti_sgc.c,v 1.8 2002/01/25 21:37:15 mickey Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff
@@ -190,6 +190,8 @@ sti_sgc_attach(parent, self, aux)
printf("sti: hpa=%x, rom=%x\n", ca->ca_hpa, addr);
printf("sti: ioh=%x, romh=%x\n", sc->ioh, sc->romh);
#endif
+ if (ca->ca_hpa == (hppa_hpa_t)PAGE0->mem_cons.pz_hpa)
+ sc->sc_flags |= STI_CONSOLE;
sti_attach_common(sc);
}