1139735Simp/*- 2132051Scognet * Copyright (c) 2004 Marcel Moolenaar 3132051Scognet * All rights reserved. 4132051Scognet * 5132051Scognet * Redistribution and use in source and binary forms, with or without 6132051Scognet * modification, are permitted provided that the following conditions 7132051Scognet * are met: 8132051Scognet * 9132051Scognet * 1. Redistributions of source code must retain the above copyright 10132051Scognet * notice, this list of conditions and the following disclaimer. 11132051Scognet * 2. Redistributions in binary form must reproduce the above copyright 12132051Scognet * notice, this list of conditions and the following disclaimer in the 13132051Scognet * documentation and/or other materials provided with the distribution. 14132051Scognet * 15132051Scognet * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16132051Scognet * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17132051Scognet * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18132051Scognet * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19132051Scognet * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20132051Scognet * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21132051Scognet * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22132051Scognet * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23132051Scognet * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24132051Scognet * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25132051Scognet * 26132051Scognet * $FreeBSD: releng/10.3/sys/arm/include/kdb.h 266373 2014-05-17 22:50:16Z ian $ 27132051Scognet */ 28132051Scognet 29132051Scognet#ifndef _MACHINE_KDB_H_ 30132051Scognet#define _MACHINE_KDB_H_ 31132051Scognet 32132051Scognet#include <machine/frame.h> 33132051Scognet#include <machine/psl.h> 34137975Scognet#include <machine/cpufunc.h> 35132051Scognet 36253762Scognet#define KDB_STOPPEDPCB(pc) &stoppcbs[pc->pc_cpuid] 37253762Scognet 38132051Scognetstatic __inline void 39132051Scognetkdb_cpu_clear_singlestep(void) 40132051Scognet{ 41132051Scognet} 42132051Scognet 43132051Scognetstatic __inline void 44132051Scognetkdb_cpu_set_singlestep(void) 45132051Scognet{ 46132051Scognet} 47132051Scognet 48132051Scognetstatic __inline void 49170473Smarcelkdb_cpu_sync_icache(unsigned char *addr, size_t size) 50170473Smarcel{ 51236307Sgber 52266373Sian cpu_icache_sync_range((vm_offset_t)addr, size); 53170473Smarcel} 54170473Smarcel 55170473Smarcelstatic __inline void 56132051Scognetkdb_cpu_trap(int type, int code) 57132051Scognet{ 58132051Scognet} 59132051Scognet 60132051Scognet#endif /* _MACHINE_KDB_H_ */ 61