kdb.h (6cec9cad762b6476313fb1f8e931a1647822db6b) | kdb.h (595f8a5905b062aedcd455b703cd63ca44f23f18) |
---|---|
1/*- 2 * Copyright (c) 2004 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 18 unchanged lines hidden (view full) --- 27 */ 28 29#ifndef _MACHINE_KDB_H_ 30#define _MACHINE_KDB_H_ 31 32#include <machine/frame.h> 33#include <machine/psl.h> 34#include <machine/cpufunc.h> | 1/*- 2 * Copyright (c) 2004 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 18 unchanged lines hidden (view full) --- 27 */ 28 29#ifndef _MACHINE_KDB_H_ 30#define _MACHINE_KDB_H_ 31 32#include <machine/frame.h> 33#include <machine/psl.h> 34#include <machine/cpufunc.h> |
35#include <machine/db_machdep.h> |
|
35 36#define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid] 37 | 36 37#define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid] 38 |
39#if __ARM_ARCH >= 6 40extern void kdb_cpu_clear_singlestep(void); 41extern void kdb_cpu_set_singlestep(void); 42boolean_t kdb_cpu_pc_is_singlestep(db_addr_t); 43#else |
|
38static __inline void 39kdb_cpu_clear_singlestep(void) 40{ 41} 42 43static __inline void 44kdb_cpu_set_singlestep(void) 45{ 46} | 44static __inline void 45kdb_cpu_clear_singlestep(void) 46{ 47} 48 49static __inline void 50kdb_cpu_set_singlestep(void) 51{ 52} |
53#endif |
|
47 48static __inline void 49kdb_cpu_sync_icache(unsigned char *addr, size_t size) 50{ 51 52 cpu_icache_sync_range((vm_offset_t)addr, size); 53} 54 55static __inline void 56kdb_cpu_trap(int type, int code) 57{ 58} 59 60#endif /* _MACHINE_KDB_H_ */ | 54 55static __inline void 56kdb_cpu_sync_icache(unsigned char *addr, size_t size) 57{ 58 59 cpu_icache_sync_range((vm_offset_t)addr, size); 60} 61 62static __inline void 63kdb_cpu_trap(int type, int code) 64{ 65} 66 67#endif /* _MACHINE_KDB_H_ */ |