summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/vsa/lcg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/vax/vsa/lcg.c b/sys/arch/vax/vsa/lcg.c
index 12b2e28f3b3..278f5af11ef 100644
--- a/sys/arch/vax/vsa/lcg.c
+++ b/sys/arch/vax/vsa/lcg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lcg.c,v 1.1 2006/07/24 20:35:08 miod Exp $ */
+/* $OpenBSD: lcg.c,v 1.2 2006/07/24 22:18:09 miod Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
@@ -225,7 +225,7 @@ lcg_attach(struct device *parent, struct device *self, void *aux)
ss->ss_depth = lcg_probe_screen(ss->ss_cfg,
&ss->ss_width, &ss->ss_height);
ss->ss_fbsize =
- roundup(ss->ss_width * ss->ss_height, VAX_NBPG);
+ roundup(ss->ss_width * ss->ss_height, PAGE_SIZE);
ss->ss_addr = (caddr_t)vax_map_physmem(LCG_FB_ADDR,
ss->ss_fbsize / VAX_NBPG);