mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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 fixese605b87a9e
("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:
parent
3a151e31ac
commit
ec1bc53002
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue