Commit f9eba5f
committed
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@1 parent 65dbcf2 commit f9eba5f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
| |||
0 commit comments