opnsense-src/sys/arm64/include
John Baldwin 992029ba10 Reliably enable debug exceptions on all CPUs.
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
2017-08-12 18:42:54 +00:00
..
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h Define the vm_ooffset_t and vm_pindex_t types as machine-independend. 2017-02-04 12:26:38 +00:00
acpica_machdep.h Add support to find the arm64 serial using the ACPI tables. This uses the 2016-11-21 19:26:58 +00:00
armreg.h Allocate a cacheline when reading or writing to write through memory. The 2017-05-13 13:03:20 +00:00
asm.h In ARMv8.1 ARM has added a process state bit to disable access to userspace 2017-04-13 13:46:01 +00:00
atomic.h Remove a blank line accidentally added in r320403. 2017-06-30 14:45:43 +00:00
bus.h
bus_dma.h Clean up MD pollution of bus_dma.h: 2017-07-01 05:35:29 +00:00
bus_dma_impl.h Clean up MD pollution of bus_dma.h: 2017-07-01 05:35:29 +00:00
clock.h
counter.h Remove trailing whitespace from r317061 2017-04-17 18:57:26 +00:00
cpu.h
cpufunc.h In ARMv8.1 ARM has added a process state bit to disable access to userspace 2017-04-13 13:46:01 +00:00
db_machdep.h Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
debug_monitor.h Fix the arm64 kernel build when DDB is disabled, debug_monitor.c depends on 2016-09-13 15:45:22 +00:00
disassem.h
dump.h
efi.h Fix building on i386 and arm. But 'public domain' headers on the files 2016-10-13 06:56:23 +00:00
elf.h
endian.h Add parentheses missed in r320388 2017-06-27 16:30:01 +00:00
exec.h
float.h
floatingpoint.h
frame.h Push reading of ESR_EL1 to assembly. Among other uses this will allow us 2017-02-07 18:19:11 +00:00
hypervisor.h
ieeefp.h
in_cksum.h
intr.h
iodev.h
kdb.h
machdep.h Reliably enable debug exceptions on all CPUs. 2017-08-12 18:42:54 +00:00
md_var.h
memdev.h
metadata.h
minidump.h
ofw_machdep.h
param.h Mark each cpu in the appropriate cpuset_domain set. This allows devices to 2017-08-05 20:57:34 +00:00
pcb.h Add support for passing FPU_KERN_NOCTX to fpu_kern_enter on arm64. This 2017-07-18 16:36:32 +00:00
pci_cfgreg.h
pcpu.h - Remove 'struct vmmeter' from 'struct pcpu', leaving only global vmmeter 2017-04-17 17:34:47 +00:00
pmap.h Teach the parts of the arm64 pmap that need to iterate over pages to also 2016-08-24 12:32:18 +00:00
pmc_mdep.h
proc.h Make struct syscall_args visible to userspace compilation environment 2017-06-12 20:53:44 +00:00
profile.h
psl.h
pte.h Start to use the User and Privileged execute-never bits in the arm64 2017-04-12 16:28:40 +00:00
ptrace.h
reg.h
reloc.h
resource.h
runq.h
setjmp.h Move the stored signal mask later in the jump buf. It was being clobbered 2016-12-06 13:46:12 +00:00
sf_buf.h
signal.h
smp.h
stack.h
stdarg.h
sysarch.h
trap.h
ucontext.h
vdso.h
vfp.h Add support for passing FPU_KERN_NOCTX to fpu_kern_enter on arm64. This 2017-07-18 16:36:32 +00:00
vm.h Add the VM_MEMATTR_WRITE_THROUGH memory type to arm64 and use it to support 2017-05-13 13:01:15 +00:00
vmparam.h