You meant to write:
mmap2(0xb8000, 8192, PROT_READ|PROT_WRITE,
MAP_SHARED|MAP_FIXED, 3, 0xb8000 >> 12);
The offset argument to mmap2 is divided by PAGE_SIZE.
That is the whole point of mmap2 :)
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/