From 0b015358b703320aa0d6d9183a88b907154fc272 Mon Sep 17 00:00:00 2001 From: kraxel Date: Thu, 15 Jun 2006 14:08:30 +0000 Subject: fixup page_mask --- fbtools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fbtools.c') diff --git a/fbtools.c b/fbtools.c index d3ef8a8..c3be2f6 100644 --- a/fbtools.c +++ b/fbtools.c @@ -426,7 +426,7 @@ fb_init(char *device, char *mode, int vt) } #endif page_mask = getpagesize()-1; - fb_mem_offset = (unsigned long)(fb_fix.smem_start) & (~page_mask); + fb_mem_offset = (unsigned long)(fb_fix.smem_start) & page_mask; fb_mem = mmap(NULL,fb_fix.smem_len+fb_mem_offset, PROT_READ|PROT_WRITE,MAP_SHARED,fb,0); if (-1L == (long)fb_mem) { -- cgit