mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
Previously, debug exceptions were only enabled on the boot CPU if DDB was enabled in the dbg_monitor_init() function. APs also called this function, but since mp_machdep.c doesn't include opt_ddb.h, the APs ended up calling an empty stub defined in <machine/debug_monitor.h> instead of the real function. Also, if DDB was not enabled in the kernel, the boot CPU would not enable debug exceptions. Fix this by adding a new dbg_init() function that always clears the OS lock to enable debug exceptions which the boot CPU and the APs call. This function also calls dbg_monitor_init() to enable hardware breakpoints from DDB on all CPUs if DDB is enabled. Eventually base support for hardware breakpoints/watchpoints will need to move out of the DDB-only debug_monitor.c for use by userland debuggers. Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D12001 |
||
|---|---|---|
| .. | ||
| _align.h | ||
| _bus.h | ||
| _inttypes.h | ||
| _limits.h | ||
| _stdint.h | ||
| _types.h | ||
| acpica_machdep.h | ||
| armreg.h | ||
| asm.h | ||
| atomic.h | ||
| bus.h | ||
| bus_dma.h | ||
| bus_dma_impl.h | ||
| clock.h | ||
| counter.h | ||
| cpu.h | ||
| cpufunc.h | ||
| db_machdep.h | ||
| debug_monitor.h | ||
| disassem.h | ||
| dump.h | ||
| efi.h | ||
| elf.h | ||
| endian.h | ||
| exec.h | ||
| float.h | ||
| floatingpoint.h | ||
| frame.h | ||
| hypervisor.h | ||
| ieeefp.h | ||
| in_cksum.h | ||
| intr.h | ||
| iodev.h | ||
| kdb.h | ||
| machdep.h | ||
| md_var.h | ||
| memdev.h | ||
| metadata.h | ||
| minidump.h | ||
| ofw_machdep.h | ||
| param.h | ||
| pcb.h | ||
| pci_cfgreg.h | ||
| pcpu.h | ||
| pmap.h | ||
| pmc_mdep.h | ||
| proc.h | ||
| profile.h | ||
| psl.h | ||
| pte.h | ||
| ptrace.h | ||
| reg.h | ||
| reloc.h | ||
| resource.h | ||
| runq.h | ||
| setjmp.h | ||
| sf_buf.h | ||
| signal.h | ||
| smp.h | ||
| stack.h | ||
| stdarg.h | ||
| sysarch.h | ||
| trap.h | ||
| ucontext.h | ||
| vdso.h | ||
| vfp.h | ||
| vm.h | ||
| vmparam.h | ||