Module Name: src Committed By: riastradh Date: Sun Aug 6 16:07:53 UTC 2023
Modified Files: src/sys/arch/xen/x86: xen_ipi.c Log Message: xen/x86: Get the right intrframe pointer in ddb ipi. This was broken with the transition from evtchn_set_handler to intr_establish_xname in 2017, remained broken with the transition from intr_establish_xname to xen_intr_establish_xname in 2018, and still remained broken when xen_intr_establish_xname was changed back to evtchn_set_handler in 2020. The mechanism is grody -- instead of a secret second argument to the interrupt handler, the intrframe pointer should be replaced by a struct cpu_info member that is saved and restored by the interrupt handler calling logic. But we should make sure the replacement actually works first -- which is not trivial in part because the users are hidden behind sketchy function pointer casts. With any luck, this will make `mach cpu N' work in ddb on Xen. XXX pullup-10 XXX pullup-9 (by patch) To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/arch/xen/x86/xen_ipi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.