the bitrig master branch has been updated by haesbaert with 1 new commit:

commit f9eba5f5f685fabb9965e08ecec6f29a0dc46c66
diff: https://github.com/bitrig/bitrig/commit/f9eba5f
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.

ok pedro@

M       sys/dev/pci/mpii.c

Reply via email to