]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix userland program exception handling for powerpc64.
authorJustin Hibbits <jhibbits@FreeBSD.org>
Thu, 16 Jul 2015 05:13:08 +0000 (05:13 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Thu, 16 Jul 2015 05:13:08 +0000 (05:13 +0000)
commit96f3c2adbe557a242a6b0dd0b665fdc852976155
tree2a33bf32dccacb479c27d0af3eb4f04b7488b065
parent62145ff347bec2619a75cb615393469d442a5291
Fix userland program exception handling for powerpc64.

It appears that the linker will not handle 64-bit relocations at addresses that
are not aligned to 8-byte boundaries.  Prior to this change the line:

  .llong generictrap

was aligned to a 4-byte address, and the linker replaced that with an 8-byte
0x0.  Aligning that address to 8 bytes caused the linker to generate the proper
relocation.  As a follow-through, the dblow from trap_subr33.S used the code
sequence 'lwz %r1, TRAP_GENTRAP(0)', so this reproduces the analogue of that for
64-bit.
sys/powerpc/aim/trap_subr64.S