]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ppc64: handle exception 0x1500 (soft patch)
authorluporl <luporl@FreeBSD.org>
Mon, 10 Dec 2018 14:54:28 +0000 (14:54 +0000)
committerluporl <luporl@FreeBSD.org>
Mon, 10 Dec 2018 14:54:28 +0000 (14:54 +0000)
commit38e00d542b3edd16347e8ca1e4d31738a844df60
tree0aaa1c8d6a5379df63224187c3d5e3219bc9d44b
parent13b1c7a3a52edb03df1282766f3135576afdcce5
ppc64: handle exception 0x1500 (soft patch)

This change adds a hypervisor trap handler for exception 0x1500 (soft patch),
normalizing all VSX registers and returning.
This avoids a kernel panic due to unknown exception.

Change made with the collaboration of leonardo.bianconi_eldorado.org.br,
that found out that this is a hypervisor exception and not a supervisor one,
and fixed this in the code.

Reviewed by: jhibbits, sbruno
Differential Revision: https://reviews.freebsd.org/D17806
sys/powerpc/aim/aim_machdep.c
sys/powerpc/include/trap.h
sys/powerpc/powerpc/db_trace.c
sys/powerpc/powerpc/trap.c