aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;