trap_cfi(9): add exception handler CFI for arm64 Introduce CFI annotations for arm64 trap frames. This allows debuggers such as lldb and gdb to unwind these stack frames using DWARF debug information without requiring custom unwinders, as currently used in kgdb. Create a separate copy of fork_trampoline(), fork_trampoline_kthread(), for starting kernel threads, which require a different initial CFI state. Mark these synthetic frames as having no caller so unwinding terminates at the start of the kernel thread. Suggested by: Jason Molenda <jason@molenda.com> MFC after: 2 weeks Sponsored by: FreeBSD Foundation
trap_cfi(9): add assembly interface for arm64 Add assembly macros for describing arm64 trap frames with DWARF call frame information (CFI). These provide the register and stack rules needed for debuggers such as lldb and gdb to unwind trap frames without custom unwinders, as currently used in kgdb. Suggested by: Jason Molenda <jason@molenda.com> MFC after: 2 weeks Sponsored by: FreeBSD Foundation