summaryrefslogtreecommitdiff
path: root/sys/arch/m88k/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-11-18 22:58:29 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-11-18 22:58:29 +0000
commit89a9637abf4398b3c22050eaf86fa9f16aab37b9 (patch)
treefffcde0111af20f0eaeef7cf0c316b3fc6a4f7c0 /sys/arch/m88k/include
parent6edf1a7eaa74b5c92be3add1eac9be0e4ea36476 (diff)
On 88100 systems which do not need the xxx.usr instruction workaround,
override the DAE helper routines with workaroundless code while the kernel text is still writable.
Diffstat (limited to 'sys/arch/m88k/include')
-rw-r--r--sys/arch/m88k/include/m88100.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/sys/arch/m88k/include/m88100.h b/sys/arch/m88k/include/m88100.h
index 1b56d2f26d2..53180beb2e2 100644
--- a/sys/arch/m88k/include/m88100.h
+++ b/sys/arch/m88k/include/m88100.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: m88100.h,v 1.2 2004/08/01 17:18:05 miod Exp $ */
+/* $OpenBSD: m88100.h,v 1.3 2006/11/18 22:58:28 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1992 Carnegie Mellon University
@@ -57,19 +57,21 @@
#define DMT_ENBITS(x) (((x) & DMT_EN) >> DMT_ENSHIFT)
#if defined(_KERNEL) && !defined(_LOCORE)
-void dae_print(unsigned *eframe);
-void data_access_emulation(unsigned *eframe);
+
+void dae_print(unsigned *);
+void data_access_emulation(unsigned *);
u_int32_t do_load_word(vaddr_t, int);
u_int16_t do_load_half(vaddr_t, int);
-u_int8_t do_load_byte(vaddr_t, int);
+u_int8_t do_load_byte(vaddr_t, int);
+void do_store_word(vaddr_t, u_int32_t, int);
+void do_store_half(vaddr_t, u_int16_t, int);
+void do_store_byte(vaddr_t, u_int8_t, int);
+u_int32_t do_xmem_word(vaddr_t, u_int32_t, int);
+u_int8_t do_xmem_byte(vaddr_t, u_int8_t, int);
-void do_store_word(vaddr_t, u_int32_t, int);
-void do_store_half(vaddr_t, u_int16_t, int);
-void do_store_byte(vaddr_t, u_int8_t, int);
+void m88100_apply_patches(void);
-u_int32_t do_xmem_word(vaddr_t, u_int32_t, int);
-u_int8_t do_xmem_byte(vaddr_t, u_int8_t, int);
#endif
#endif /* __M88K_M88100_H__ */