arm64: cpu_switch: don't zero out pcb_onfault

Previously this would zero out x18 in the pcb, now it's attacking the
innocent pcb_onfault -- drop it entirely.

This technically fixes
e605b87a9e ("Save only callee-saved registers in pcb"), but it's
harmless until the below commit trims down pcb_x.

Reported by:	mmel
Reviewed by:	andrew, mmel
Fixes:	1c1f31a5e5 ("Remove unused registes from the arm pcb")
Differential Revision:	https://reviews.freebsd.org/D39277
This commit is contained in:
Kyle Evans 2023-03-26 13:48:22 -05:00
parent 3a151e31ac
commit ec1bc53002

View file

@ -203,7 +203,6 @@ ENTRY(cpu_switch)
ldp x27, x28, [x4, #PCB_REGS + (PCB_X19 + 8) * 8]
ldp x29, lr, [x4, #PCB_REGS + (PCB_X19 + 10) * 8]
str xzr, [x4, #PCB_REGS + 18 * 8]
ret
END(cpu_switch)