From 5998c2adbbbe55ea4055210886d38eab9cfbad83 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 24 Jul 2006 22:18:10 +0000 Subject: Make sure the mapped frame buffer area is a multiple of the logical page size, for mmap to be happy. --- sys/arch/vax/vsa/lcg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/vax') 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); -- cgit v1.2.3