diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-07-24 22:18:10 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-07-24 22:18:10 +0000 |
commit | 5998c2adbbbe55ea4055210886d38eab9cfbad83 (patch) | |
tree | 1ff4a82dcef1a2c31870916ce1eaf609ea54220d /sys | |
parent | 73f502330ddbccf83be4196beb0af98d12156409 (diff) |
Make sure the mapped frame buffer area is a multiple of the logical page
size, for mmap to be happy.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/vax/vsa/lcg.c | 4 |
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); |