]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
OR in the unsigned form of the MCAR lower register.
authorjhibbits <jhibbits@FreeBSD.org>
Mon, 25 Apr 2016 03:01:57 +0000 (03:01 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Mon, 25 Apr 2016 03:01:57 +0000 (03:01 +0000)
commite6cff0f7c1fdd2477ed9984e37db89ae6c77a461
treeb1fa427e7760ab5e95db931c9d6a0587ee445911
parent66299e89cd201228e08b392baba18257449443cf
OR in the unsigned form of the MCAR lower register.

When ORing in a register_t to a wider integer (vm_paddr_t), it gets sign
extended, so high addresses overwrite the upper word with all 0xf.  Cast to the
unsigned form (u_register_t), to avoid this problem, and get correct addresses
printed.
sys/powerpc/powerpc/trap.c