summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/include/locore.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvme88k/include/locore.h')
-rw-r--r--sys/arch/mvme88k/include/locore.h96
1 files changed, 79 insertions, 17 deletions
diff --git a/sys/arch/mvme88k/include/locore.h b/sys/arch/mvme88k/include/locore.h
index 7c8403e3671..446d44b78a1 100644
--- a/sys/arch/mvme88k/include/locore.h
+++ b/sys/arch/mvme88k/include/locore.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.h,v 1.7 2001/03/09 05:44:40 smurph Exp $ */
+/* $OpenBSD: locore.h,v 1.8 2001/03/16 00:05:25 miod Exp $ */
#ifndef _MACHINE_LOCORE_H_
#define _MACHINE_LOCORE_H_
@@ -6,37 +6,99 @@
#include <vm/vm_param.h>
/*
- * C prototypes for various routines defined in locore_*
+ * C prototypes for various routines defined in locore_* and friends
*/
-extern unsigned int do_load_word __P((vm_offset_t address,
+/* locore_asm_routines.S */
+
+unsigned int do_load_word __P((vm_offset_t address,
boolean_t supervisor_mode));
-extern unsigned int do_load_half __P((vm_offset_t address,
+unsigned int do_load_half __P((vm_offset_t address,
boolean_t supervisor_mode));
-extern unsigned int do_load_byte __P((vm_offset_t address,
+unsigned int do_load_byte __P((vm_offset_t address,
boolean_t supervisor_mode));
-extern void do_store_word __P((vm_offset_t address, unsigned int data,
+void do_store_word __P((vm_offset_t address, unsigned int data,
boolean_t supervisor_mode));
-extern void do_store_half __P((vm_offset_t address, unsigned int data,
+void do_store_half __P((vm_offset_t address, unsigned int data,
boolean_t supervisor_mode));
-extern void do_store_byte __P((vm_offset_t address, unsigned int data,
+void do_store_byte __P((vm_offset_t address, unsigned int data,
boolean_t supervisor_mode));
-extern unsigned do_xmem_word __P((vm_offset_t address, unsigned int data,
+unsigned do_xmem_word __P((vm_offset_t address, unsigned int data,
boolean_t supervisor_mode));
-extern unsigned do_xmem_byte __P((vm_offset_t address, unsigned int data,
+unsigned do_xmem_byte __P((vm_offset_t address, unsigned int data,
boolean_t supervisor_mode));
-extern unsigned read_processor_identification_register __P((void));
-extern int badaddr __P((vm_offset_t addr, int size));
-extern void set_cpu_number __P((unsigned number));
-extern void doboot __P((void));
+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));
+
+#if defined(MVME187) || defined(MVME188)
+int guarded_access __P((volatile unsigned char *address,
+ unsigned len, unsigned *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));
+void block_obio_interrupt __P((unsigned mask));
+void unblock_obio_interrupt __P((unsigned mask));
+#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 */
#if defined(MVME187) || defined(MVME188)
-extern void dae_print __P((unsigned *eframe));
-extern void data_access_emulation __P((unsigned *eframe));
-extern int guarded_access( );
+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
#endif /* _MACHINE_LOCORE_H_ */