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
110
111
112
113
114
115
|
/* $OpenBSD: locore.h,v 1.10 2001/08/26 14:31:07 miod Exp $ */
#ifndef _MACHINE_LOCORE_H_
#define _MACHINE_LOCORE_H_
#include <vm/vm_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));
#if defined(MVME187) || defined(MVME188)
int guarded_access __P((volatile unsigned char *address,
unsigned len, u_char *vec));
#endif
/* locore_c_routines.c */
#if defined(MVME187) || defined(MVME188)
void dae_print __P((unsigned *eframe));
void data_access_emulation __P((unsigned *eframe));
#endif
#ifdef MVME188
unsigned int safe_level __P((unsigned mask, unsigned curlevel));
#if 0
void block_obio_interrupt __P((unsigned mask));
void unblock_obio_interrupt __P((unsigned mask));
#endif
#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 MVME188
void m188_reset __P((void));
void m188_ext_int __P((u_int v, struct m88100_saved_state *eframe));
#endif
#if defined(MVME187) || defined(MVME197)
void sbc_ext_int __P((u_int v, struct m88100_saved_state *eframe));
#endif
/* eh.S */
struct proc;
void proc_do_uret __P((struct proc *));
#if defined(MVME187) || defined(MVME188)
void sigsys __P((void));
void sigtrap __P((void));
void stepbpt __P((void));
void userbpt __P((void));
void syscall_handler __P((void));
#endif
#if defined(MVME197)
void m197_sigsys __P((void));
void m197_sigtrap __P((void));
void m197_stepbpt __P((void));
void m197_userbpt __P((void));
void m197_syscall_handler __P((void));
#endif
/* process.S */
void savectx __P((struct pcb *));
void switch_exit __P((struct proc *));
#endif /* _MACHINE_LOCORE_H_ */
|