Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/kdb.h
Show All 31 Lines | |||||
#define _MACHINE_KDB_H_ | #define _MACHINE_KDB_H_ | ||||
#include <machine/cpufunc.h> | #include <machine/cpufunc.h> | ||||
#define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid] | #define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid] | ||||
void kdb_cpu_clear_singlestep(void); | void kdb_cpu_clear_singlestep(void); | ||||
void kdb_cpu_set_singlestep(void); | void kdb_cpu_set_singlestep(void); | ||||
int kdb_cpu_set_breakpoint(vm_offset_t addr); | |||||
int kdb_cpu_clr_breakpoint(vm_offset_t addr); | |||||
int kdb_cpu_set_watchpoint(vm_offset_t addr, size_t size, int access); | int kdb_cpu_set_watchpoint(vm_offset_t addr, size_t size, int access); | ||||
int kdb_cpu_clr_watchpoint(vm_offset_t addr, size_t size); | int kdb_cpu_clr_watchpoint(vm_offset_t addr, size_t size); | ||||
static __inline void | static __inline void | ||||
kdb_cpu_sync_icache(unsigned char *addr, size_t size) | kdb_cpu_sync_icache(unsigned char *addr, size_t size) | ||||
{ | { | ||||
cpu_icache_sync_range(addr, size); | cpu_icache_sync_range(addr, size); | ||||
} | } | ||||
static __inline void | static __inline void | ||||
kdb_cpu_trap(int type, int code) | kdb_cpu_trap(int type, int code) | ||||
{ | { | ||||
} | } | ||||
#endif /* _MACHINE_KDB_H_ */ | #endif /* _MACHINE_KDB_H_ */ |