summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/fd.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-03-13 00:24:22 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-03-13 00:24:22 +0000
commit28857c6da590c454e695be1822fa6e2cbc7b24a8 (patch)
treeb19b58a1cbb4a7f2c554b4e4248faa8a1d58258c /sys/arch/sparc/dev/fd.c
parent8c9ff39213d156dc31183316f6ce101a0c425c35 (diff)
On sparc, PAGE_SIZE and friends might not be a compile-time constant.
Instead of using a homegrown set of variables in this case, rely on uvmexp fields once uvm has been initialized. This requires a few #include <uvm/uvm_extern.h> here and there in the kernel as well. Idea from art@, changes by me.
Diffstat (limited to 'sys/arch/sparc/dev/fd.c')
-rw-r--r--sys/arch/sparc/dev/fd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c
index 484f9d426a5..5cea4853fff 100644
--- a/sys/arch/sparc/dev/fd.c
+++ b/sys/arch/sparc/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.24 2001/03/24 01:37:28 ho Exp $ */
+/* $OpenBSD: fd.c,v 1.25 2002/03/13 00:24:21 miod Exp $ */
/* $NetBSD: fd.c,v 1.51 1997/05/24 20:16:19 pk Exp $ */
/*-
@@ -69,6 +69,8 @@
#include <dev/cons.h>
+#include <uvm/uvm_extern.h>
+
#include <machine/cpu.h>
#include <machine/autoconf.h>
#include <machine/conf.h>