1139825Simp/*- 2132064Sgrehan * Copyright (c) 2004 Marcel Moolenaar 3132064Sgrehan * All rights reserved. 4132064Sgrehan * 5132064Sgrehan * Redistribution and use in source and binary forms, with or without 6132064Sgrehan * modification, are permitted provided that the following conditions 7132064Sgrehan * are met: 8132064Sgrehan * 9132064Sgrehan * 1. Redistributions of source code must retain the above copyright 10132064Sgrehan * notice, this list of conditions and the following disclaimer. 11132064Sgrehan * 2. Redistributions in binary form must reproduce the above copyright 12132064Sgrehan * notice, this list of conditions and the following disclaimer in the 13132064Sgrehan * documentation and/or other materials provided with the distribution. 14132064Sgrehan * 15132064Sgrehan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16132064Sgrehan * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17132064Sgrehan * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18132064Sgrehan * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19132064Sgrehan * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20132064Sgrehan * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21132064Sgrehan * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22132064Sgrehan * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23132064Sgrehan * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24132064Sgrehan * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25132064Sgrehan * 26132064Sgrehan * $FreeBSD: releng/10.3/sys/powerpc/include/kdb.h 176742 2008-03-02 17:05:57Z raj $ 27132064Sgrehan */ 28132064Sgrehan 29132064Sgrehan#ifndef _MACHINE_KDB_H_ 30132064Sgrehan#define _MACHINE_KDB_H_ 31132064Sgrehan 32132064Sgrehan#include <machine/cpufunc.h> 33132689Sgrehan#include <machine/frame.h> 34170473Smarcel#include <machine/md_var.h> 35132689Sgrehan#include <machine/psl.h> 36176742Sraj#include <machine/spr.h> 37132064Sgrehan 38176742Srajvoid kdb_cpu_clear_singlestep(void); 39176742Srajvoid kdb_cpu_set_singlestep(void); 40132064Sgrehan 41132064Sgrehanstatic __inline void 42176742Srajkdb_cpu_sync_icache(unsigned char *addr, size_t size) 43132064Sgrehan{ 44132064Sgrehan 45170473Smarcel __syncicache(addr, size); 46170473Smarcel} 47170473Smarcel 48170473Smarcelstatic __inline void 49132064Sgrehankdb_cpu_trap(int vector, int _) 50132064Sgrehan{ 51132064Sgrehan} 52132064Sgrehan 53132064Sgrehan#endif /* _MACHINE_KDB_H_ */ 54