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
|
/* $OpenBSD: locore.h,v 1.17 2003/01/13 20:12:16 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(vm_offset_t address,
boolean_t supervisor_mode);
unsigned int do_load_half(vm_offset_t address,
boolean_t supervisor_mode);
unsigned int do_load_byte(vm_offset_t address,
boolean_t supervisor_mode);
void do_store_word(vm_offset_t address, unsigned int data,
boolean_t supervisor_mode);
void do_store_half(vm_offset_t address, unsigned int data,
boolean_t supervisor_mode);
void do_store_byte(vm_offset_t address, unsigned int data,
boolean_t supervisor_mode);
unsigned do_xmem_word(vm_offset_t address, unsigned int data,
boolean_t supervisor_mode);
unsigned do_xmem_byte(vm_offset_t address, unsigned int data,
boolean_t supervisor_mode);
unsigned read_processor_identification_register(void);
int badaddr(vm_offset_t addr, int size);
#define badwordaddr(x) badaddr(x, 4)
void set_cpu_number(unsigned number);
void doboot(void);
int db_are_interrupts_disabled(void);
void fubail(void);
void subail(void);
int guarded_access(unsigned char *volatile address,
unsigned len, u_char *vec);
/* locore_c_routines.c */
#ifdef M88100
void dae_print(unsigned *eframe);
void data_access_emulation(unsigned *eframe);
#endif
unsigned getipl(void);
/* machdep.c */
void _doboot(void);
vm_offset_t get_slave_stack(void);
void slave_pre_main(void);
int slave_main(void);
int intr_findvec(int start, int end);
void bugsyscall(void);
void myetheraddr(u_char *cp);
void dosoftint(void);
void MY_info(struct trapframe *f, caddr_t p, int flags, char *s);
void MY_info_done(struct trapframe *f, int flags);
void mvme_bootstrap(void);
#ifdef MVME187
void m187_ext_int(u_int v, struct m88100_saved_state *eframe);
#endif
#ifdef MVME188
void m188_reset(void);
void m188_ext_int(u_int v, struct m88100_saved_state *eframe);
unsigned int safe_level(unsigned mask, unsigned curlevel);
#endif
#ifdef MVME197
void m197_ext_int(u_int v, struct m88100_saved_state *eframe);
#endif
/* eh.S */
struct proc;
void proc_do_uret(struct proc *);
#ifdef M88100
void sigsys(void);
void sigtrap(void);
void stepbpt(void);
void userbpt(void);
void syscall_handler(void);
#endif
#ifdef M88110
void m88110_sigsys(void);
void m88110_sigtrap(void);
void m88110_stepbpt(void);
void m88110_userbpt(void);
void m88110_syscall_handler(void);
#endif
/* process.S */
void savectx(struct pcb *);
void switch_exit(struct proc *);
#endif /* _MACHINE_LOCORE_H_ */
|