summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2006-01-13 21:01:28 +0000
committermiod <miod@openbsd.org>2006-01-13 21:01:28 +0000
commit73f606aa8bf966406dd1a13b3ee061955f12c06e (patch)
treea77cbbed14cf8ed1d7d960a7c93c40291c9b2349
parent- fix short preamble support (diff)
downloadwireguard-openbsd-73f606aa8bf966406dd1a13b3ee061955f12c06e.tar.xz
wireguard-openbsd-73f606aa8bf966406dd1a13b3ee061955f12c06e.zip
Remove unused bad{,b,w,l}addr.
-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.
*/