the bitrig haesbaert_mpii32 branch has been created by haesbaert.

it is 1035 commits behind master, and 1 commit ahead.

commit 027b945bf6b46a2238b9ce5edd8526365370d5ad
diff: https://github.com/bitrig/bitrig/commit/027b945
author: Christiano F. Haesbaert <[email protected]>
date: Tue Mar 17 20:44:47 2015 +0100

Fix mpii(4) on 32bit.

The expression results in a signed extension from 32bit to 64bit,
resulting in the higher word being 0xffffffff on 32bit systems:

The expression is bus_addr_t + caddr_t - caddr_t, which is:
(bus_addr_t + caddr_t) - caddr_t,
which is (u_long + (char *)) - (char *),
u_long + char * == signed 32bit pointer, which then
gets subtracted, which then gets signed extended to 64bit.

M       sys/dev/pci/mpii.c

Reply via email to