kdb.h revision 139735
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: head/sys/arm/include/kdb.h 139735 2005-01-05 21:58:49Z imp $ 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 36132051Scognetstatic __inline void 37132051Scognetkdb_cpu_clear_singlestep(void) 38132051Scognet{ 39132051Scognet} 40132051Scognet 41132051Scognetstatic __inline void 42132051Scognetkdb_cpu_set_singlestep(void) 43132051Scognet{ 44132051Scognet} 45132051Scognet 46132051Scognetstatic __inline void 47132051Scognetkdb_cpu_trap(int type, int code) 48132051Scognet{ 49137975Scognet cpu_idcache_wbinv_all(); 50132051Scognet} 51132051Scognet 52132051Scognet#endif /* _MACHINE_KDB_H_ */ 53