diff options
author | alc <alc@FreeBSD.org> | 2002-03-10 02:11:38 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-03-10 02:11:38 +0000 |
commit | 50cc1db981c18bb0aa4373d40f64b1be519d90f4 (patch) | |
tree | 34f77dd3e8d9a399da38065d6b5894f746ea3cda /sys/i386 | |
parent | 6b83ff594ae00c6cf0c43a7fa5feb38291ae453a (diff) | |
download | FreeBSD-src-50cc1db981c18bb0aa4373d40f64b1be519d90f4.zip FreeBSD-src-50cc1db981c18bb0aa4373d40f64b1be519d90f4.tar.gz |
Condition the compilation of trapwrite() on I386_CPU.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/trap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index 7f1e607..a454803 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -103,7 +103,9 @@ int (*pmath_emulate) __P((struct trapframe *)); extern void trap __P((struct trapframe frame)); +#ifdef I386_CPU extern int trapwrite __P((unsigned addr)); +#endif extern void syscall __P((struct trapframe frame)); static int trap_pfault __P((struct trapframe *, int, vm_offset_t)); @@ -878,6 +880,7 @@ dblfault_handler() panic("double fault"); } +#ifdef I386_CPU /* * Compensate for 386 brain damage (missing URKR). * This is a little simpler than the pagefault handler in trap() because @@ -925,6 +928,7 @@ int trapwrite(addr) return (0); } +#endif /* * syscall - system call request C handler |