SVNews r326611

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-12-06 02:05:21 - r326611 by jhibbits (Justin Hibbits)

Complete list of files affected by revision r326611:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/sys/fbio.h  

Commit message:

Use unsigned intptr_t type for framebuffer addresses

Some architectures (powerpc Book-E) have a vm_paddr_t larger than intptr_t.
Casting from the intptr_t to vm_paddr_t causes sign extension, leading to a
potentially invalid address.

This was seen when running X on a PowerPC P1022 machine, which mapped the
backing framebuffer at 0xc1800000. When mmap()d by X, this yielded an invalid
address of 0xffffffffc1800000, or, as the hardware would see it, 0xfc1800000.

Reviewed By: ray
Differential Revision:


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 8 ms, 1 file printed. Current time is 2018-03-24 21:42:11. All times are in UTC/GMT.