blob: 00d85fab2c1fc0dd5e1210b77f086dd550d01697 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* $OpenBSD: locore.h,v 1.7 2005/12/03 16:52:14 miod Exp $ */
#ifndef _MACHINE_LOCORE_H_
#define _MACHINE_LOCORE_H_
/*
* C prototypes for various routines defined in locore_* and friends
*/
/* subr.S */
int badaddr(vaddr_t addr, int size);
#define badwordaddr(x) badaddr(x, 4)
void doboot(void);
/* machdep.c */
unsigned getipl(void);
void set_cpu_number(cpuid_t);
/* eh.S */
void sigsys(void);
void sigtrap(void);
void stepbpt(void);
void userbpt(void);
void syscall_handler(void);
void cache_flush_handler(void);
#endif /* _MACHINE_LOCORE_H_ */
|