aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dcons
diff options
context:
space:
mode:
authorHidetoshi Shimokawa <simokawa@FreeBSD.org>2004-10-22 15:03:22 +0000
committerHidetoshi Shimokawa <simokawa@FreeBSD.org>2004-10-22 15:03:22 +0000
commit8ffa2e795461abf7829b174fac33954dc3786714 (patch)
treed55f764626ec7973346718c5efea050a523a7f55 /sys/dev/dcons
parent6ee737aae3cecbf504e58603d017517919dcfe27 (diff)
downloadsrc-8ffa2e795461abf7829b174fac33954dc3786714.tar.gz
src-8ffa2e795461abf7829b174fac33954dc3786714.zip
Check _BOOT flag.
Notes
Notes: svn path=/head/; revision=136781
Diffstat (limited to 'sys/dev/dcons')
-rw-r--r--sys/dev/dcons/dcons.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/dcons/dcons.h b/sys/dev/dcons/dcons.h
index 5fdc82022343..988c81f2722c 100644
--- a/sys/dev/dcons/dcons.h
+++ b/sys/dev/dcons/dcons.h
@@ -35,7 +35,7 @@
* $FreeBSD$
*/
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_BOOT)
#define V volatile
#else
#define V
@@ -74,7 +74,7 @@ struct dcons_ch {
u_int32_t size;
u_int32_t gen;
u_int32_t pos;
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_BOOT)
V u_int32_t *ptr;
V char *buf;
#else
@@ -89,7 +89,7 @@ struct dcons_ch {
#define STATE1 1
#define STATE2 2
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_BOOT)
struct dcons_softc {
struct dcons_ch o, i;
int brk_state;