summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-01-13 21:01:32 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-01-13 21:01:32 +0000
commitab7fc5c8d9979d98a2f5c76aaa3a923f3c97664b (patch)
treecf47a2d5b03dc3e51b3d494887b1599559c31afb /sys
parentc8e2be7f4a00900fa1cff372054f3e334889b2cf (diff)
Remove unused bad{,b,w,l}addr.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mac68k/include/autoconf.h5
-rw-r--r--sys/arch/mac68k/mac68k/machdep.c72
2 files changed, 2 insertions, 75 deletions
diff --git a/sys/arch/mac68k/include/autoconf.h b/sys/arch/mac68k/include/autoconf.h
index f507f701145..4893eae9249 100644
--- a/sys/arch/mac68k/include/autoconf.h
+++ b/sys/arch/mac68k/include/autoconf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.h,v 1.11 2006/01/13 19:36:44 miod Exp $ */
+/* $OpenBSD: autoconf.h,v 1.12 2006/01/13 21:01:28 miod Exp $ */
/* $NetBSD: autoconf.h,v 1.5 1996/12/17 06:47:40 scottr Exp $ */
/*
@@ -48,9 +48,6 @@ void setconf(void);
/* machdep.c */
void mac68k_set_io_offsets(vaddr_t);
void dumpconf(void);
-int badbaddr(register caddr_t addr);
-int badwaddr(register caddr_t addr);
-int badladdr(register caddr_t addr);
/* clock.h */
diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c
index a5284a74720..c7c0a091af0 100644
--- a/sys/arch/mac68k/mac68k/machdep.c
+++ b/sys/arch/mac68k/mac68k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.125 2006/01/13 19:36:46 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.126 2006/01/13 21:01:31 miod Exp $ */
/* $NetBSD: machdep.c,v 1.207 1998/07/08 04:39:34 thorpej Exp $ */
/*
@@ -942,76 +942,6 @@ straytrap(pc, evec)
int *nofault;
-int badaddr(caddr_t);
-
-int
-badaddr(addr)
- caddr_t addr;
-{
- int i;
- label_t faultbuf;
-
- nofault = (int *)&faultbuf;
- if (setjmp((label_t *)nofault)) {
- nofault = (int *)0;
- return (1);
- }
- i = *(volatile short *)addr;
- nofault = (int *)0;
- return (0);
-}
-
-int
-badbaddr(addr)
- caddr_t addr;
-{
- int i;
- label_t faultbuf;
-
- nofault = (int *)&faultbuf;
- if (setjmp((label_t *)nofault)) {
- nofault = (int *)0;
- return (1);
- }
- i = *(volatile u_int8_t *)addr;
- nofault = (int *)0;
- return (0);
-}
-
-int
-badwaddr(addr)
- caddr_t addr;
-{
- int i;
- label_t faultbuf;
-
- nofault = (int *)&faultbuf;
- if (setjmp((label_t *)nofault)) {
- nofault = (int *)0;
- return (1);
- }
- i = *(volatile u_int16_t *)addr;
- nofault = (int *)0;
- return (0);
-}
-
-int
-badladdr(addr)
- caddr_t addr;
-{
- int i;
- label_t faultbuf;
-
- nofault = (int *)&faultbuf;
- if (setjmp((label_t *)nofault)) {
- nofault = (int *)0;
- return (1);
- }
- i = *(volatile u_int32_t *)addr;
- nofault = (int *)0;
- return (0);
-}
-
/*
* Level 7 interrupts can be caused by the keyboard or parity errors.
*/