1292407Sbr/*-
2292407Sbr * Copyright (c) 2004 Marcel Moolenaar
3292407Sbr * All rights reserved.
4292407Sbr *
5292407Sbr * Redistribution and use in source and binary forms, with or without
6292407Sbr * modification, are permitted provided that the following conditions
7292407Sbr * are met:
8292407Sbr *
9292407Sbr * 1. Redistributions of source code must retain the above copyright
10292407Sbr *    notice, this list of conditions and the following disclaimer.
11292407Sbr * 2. Redistributions in binary form must reproduce the above copyright
12292407Sbr *    notice, this list of conditions and the following disclaimer in the
13292407Sbr *    documentation and/or other materials provided with the distribution.
14292407Sbr *
15292407Sbr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16292407Sbr * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17292407Sbr * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18292407Sbr * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19292407Sbr * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20292407Sbr * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21292407Sbr * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22292407Sbr * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23292407Sbr * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24292407Sbr * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25292407Sbr *
26292407Sbr * $FreeBSD$
27292407Sbr */
28292407Sbr
29292407Sbr#ifndef _MACHINE_KDB_H_
30292407Sbr#define _MACHINE_KDB_H_
31292407Sbr
32292407Sbr#include <machine/cpufunc.h>
33292407Sbr
34292407Sbr#define	KDB_STOPPEDPCB(pc)	&stoppcbs[pc->pc_cpuid]
35292407Sbr
36292407Sbrstatic __inline void
37292407Sbrkdb_cpu_clear_singlestep(void)
38292407Sbr{
39292407Sbr}
40292407Sbr
41292407Sbrstatic __inline void
42292407Sbrkdb_cpu_set_singlestep(void)
43292407Sbr{
44292407Sbr}
45292407Sbr
46292407Sbrstatic __inline void
47292407Sbrkdb_cpu_sync_icache(unsigned char *addr, size_t size)
48292407Sbr{
49292407Sbr
50292407Sbr	cpu_icache_sync_range((vm_offset_t)addr, size);
51292407Sbr}
52292407Sbr
53292407Sbrstatic __inline void
54292407Sbrkdb_cpu_trap(int type, int code)
55292407Sbr{
56292407Sbr}
57292407Sbr
58292407Sbr#endif /* _MACHINE_KDB_H_ */
59