kdb.h revision 137975
1145519Sdarrenr/* 2145510Sdarrenr * Copyright (c) 2004 Marcel Moolenaar 3170268Sdarrenr * All rights reserved. 4255332Scy * 5170268Sdarrenr * Redistribution and use in source and binary forms, with or without 6170268Sdarrenr * modification, are permitted provided that the following conditions 7170268Sdarrenr * are met: 8145510Sdarrenr * 9145510Sdarrenr * 1. Redistributions of source code must retain the above copyright 10145510Sdarrenr * notice, this list of conditions and the following disclaimer. 11145510Sdarrenr * 2. Redistributions in binary form must reproduce the above copyright 12145510Sdarrenr * notice, this list of conditions and the following disclaimer in the 13145510Sdarrenr * documentation and/or other materials provided with the distribution. 14145510Sdarrenr * 15145510Sdarrenr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16145510Sdarrenr * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17145510Sdarrenr * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18145510Sdarrenr * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19145510Sdarrenr * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20145510Sdarrenr * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21145510Sdarrenr * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22145510Sdarrenr * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23145510Sdarrenr * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24145510Sdarrenr * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25145510Sdarrenr * 26145510Sdarrenr * $FreeBSD: head/sys/arm/include/kdb.h 137975 2004-11-21 18:11:39Z cognet $ 27145510Sdarrenr */ 28145510Sdarrenr 29145510Sdarrenr#ifndef _MACHINE_KDB_H_ 30145510Sdarrenr#define _MACHINE_KDB_H_ 31145510Sdarrenr 32145510Sdarrenr#include <machine/frame.h> 33145510Sdarrenr#include <machine/psl.h> 34145510Sdarrenr#include <machine/cpufunc.h> 35145510Sdarrenr 36145510Sdarrenrstatic __inline void 37145510Sdarrenrkdb_cpu_clear_singlestep(void) 38369245Sgit2svn{ 39369245Sgit2svn} 40369245Sgit2svn 41145510Sdarrenrstatic __inline void 42145510Sdarrenrkdb_cpu_set_singlestep(void) 43145510Sdarrenr{ 44145510Sdarrenr} 45145510Sdarrenr 46145510Sdarrenrstatic __inline void 47145510Sdarrenrkdb_cpu_trap(int type, int code) 48145510Sdarrenr{ 49145510Sdarrenr cpu_idcache_wbinv_all(); 50161357Sguido} 51255332Scy 52255332Scy#endif /* _MACHINE_KDB_H_ */ 53145510Sdarrenr