diff options
author | kraxel <kraxel> | 2006-06-15 14:08:30 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2006-06-15 14:08:30 +0000 |
commit | 0b015358b703320aa0d6d9183a88b907154fc272 (patch) | |
tree | c609a368dd0f632e5e98b9d3951d1d53d24b562c /fbtools.c | |
parent | 806bc0d97704fa64feb343b714c93f957fb76f1a (diff) | |
download | fbida-0b015358b703320aa0d6d9183a88b907154fc272.tar.gz |
fixup page_mask
Diffstat (limited to 'fbtools.c')
-rw-r--r-- | fbtools.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |