summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/include/locore.h
blob: d90cc9d32ed8e3d40b9802ffe1bdabacfd5cf688 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*	$OpenBSD: locore.h,v 1.15 2002/01/14 21:34:41 miod Exp $	*/

#ifndef _MACHINE_LOCORE_H_
#define _MACHINE_LOCORE_H_

#include <uvm/uvm_param.h>

/*
 * C prototypes for various routines defined in locore_* and friends
 */

/* locore_asm_routines.S */

unsigned int do_load_word __P((vm_offset_t address,
    boolean_t supervisor_mode));
unsigned int do_load_half __P((vm_offset_t address,
    boolean_t supervisor_mode));
unsigned int do_load_byte __P((vm_offset_t address,
    boolean_t supervisor_mode));

void do_store_word __P((vm_offset_t address, unsigned int data,
    boolean_t supervisor_mode));
void do_store_half __P((vm_offset_t address, unsigned int data,
    boolean_t supervisor_mode));
void do_store_byte __P((vm_offset_t address, unsigned int data,
    boolean_t supervisor_mode));

unsigned do_xmem_word __P((vm_offset_t address, unsigned int data,
    boolean_t supervisor_mode));
unsigned do_xmem_byte __P((vm_offset_t address, unsigned int data,
    boolean_t supervisor_mode));

unsigned read_processor_identification_register __P((void));
int badaddr __P((vm_offset_t addr, int size));
#define badwordaddr(x) badaddr(x, 4)
void set_cpu_number __P((unsigned number));
void doboot __P((void));
int db_are_interrupts_disabled __P((void));

void fubail __P((void));
void subail __P((void));

int guarded_access __P((unsigned char *volatile address,
    unsigned len, u_char *vec));

/* locore_c_routines.c */

#ifdef M88100
void dae_print __P((unsigned *eframe));
void data_access_emulation __P((unsigned *eframe));
#endif 

unsigned spl __P((void));
unsigned getipl __P((void));
#ifdef DDB
unsigned db_spl __P((void));
unsigned db_getipl __P((void));
#endif


/* machdep.c */

void _doboot __P((void));
vm_offset_t get_slave_stack __P((void));
void slave_pre_main __P((void));
int slave_main __P((void));
int intr_findvec __P((int start, int end));
void bugsyscall __P((void));
void myetheraddr __P((u_char *cp));
void dosoftint __P((void));
void MY_info __P((struct trapframe *f, caddr_t p, int flags, char *s));
void MY_info_done __P((struct trapframe *f, int flags));
void mvme_bootstrap __P((void));
#ifdef MVME187
void m187_ext_int __P((u_int v, struct m88100_saved_state *eframe));
#endif
#ifdef MVME188
void m188_reset __P((void));
void m188_ext_int __P((u_int v, struct m88100_saved_state *eframe));
unsigned int safe_level __P((unsigned mask, unsigned curlevel));
#endif
#ifdef MVME197
void m197_ext_int __P((u_int v, struct m88100_saved_state *eframe));
#endif

/* eh.S */

struct proc;
void proc_do_uret __P((struct proc *));
#ifdef M88100
void sigsys __P((void));
void sigtrap __P((void));
void stepbpt __P((void));
void userbpt __P((void));
void syscall_handler __P((void));
#endif 
#ifdef M88110
void m88110_sigsys __P((void));
void m88110_sigtrap __P((void));
void m88110_stepbpt __P((void));
void m88110_userbpt __P((void));
void m88110_syscall_handler __P((void));
#endif 

/* process.S */
void savectx __P((struct pcb *));
void switch_exit __P((struct proc *));

#endif /* _MACHINE_LOCORE_H_ */