Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/include/kdb.h
Show All 26 Lines | |||||
*/ | */ | ||||
#ifndef _MACHINE_KDB_H_ | #ifndef _MACHINE_KDB_H_ | ||||
#define _MACHINE_KDB_H_ | #define _MACHINE_KDB_H_ | ||||
#include <machine/frame.h> | #include <machine/frame.h> | ||||
#include <machine/psl.h> | #include <machine/psl.h> | ||||
#include <machine/cpufunc.h> | #include <machine/cpufunc.h> | ||||
#include <machine/db_machdep.h> | |||||
#define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid] | #define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid] | ||||
#if __ARM_ARCH >= 6 | |||||
andrewUnsubmitted Done Inline Actionsandrew: ```
#include <machine/acle-compat.h>
...
#if __ARM_ARCH >= 6
``` | |||||
extern void kdb_cpu_clear_singlestep(void); | |||||
extern void kdb_cpu_set_singlestep(void); | |||||
boolean_t kdb_cpu_pc_is_singlestep(db_addr_t); | |||||
#else | |||||
static __inline void | static __inline void | ||||
kdb_cpu_clear_singlestep(void) | kdb_cpu_clear_singlestep(void) | ||||
{ | { | ||||
} | } | ||||
static __inline void | static __inline void | ||||
kdb_cpu_set_singlestep(void) | kdb_cpu_set_singlestep(void) | ||||
{ | { | ||||
} | } | ||||
#endif | |||||
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((vm_offset_t)addr, size); | cpu_icache_sync_range((vm_offset_t)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_ */ |