summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2004-06-03 05:18:43 +0000
committermiod <miod@openbsd.org>2004-06-03 05:18:43 +0000
commitaa46d1299a8200629041dc662ee19c43165d0b6f (patch)
tree028ca7cb8b9da3e30eb9d583aba1b952919556c2
parentBe sure to preserve r3 for syscalls which return 32-bit values. (diff)
downloadwireguard-openbsd-aa46d1299a8200629041dc662ee19c43165d0b6f.tar.xz
wireguard-openbsd-aa46d1299a8200629041dc662ee19c43165d0b6f.zip
Signal bus errors when a write back operation fails on 88110.
-rw-r--r--sys/arch/m88k/m88k/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c
index 8a8c4314be1..809bdf5a9ad 100644
--- a/sys/arch/m88k/m88k/trap.c
+++ b/sys/arch/m88k/m88k/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.3 2004/06/03 05:17:36 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.4 2004/06/03 05:18:43 miod Exp $ */
/*
* Copyright (c) 1998 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -921,7 +921,7 @@ m88110_user_fault:
} else
if (frame->tf_dsr & (CMMU_DSR_CP | CMMU_DSR_WA)) {
/* copyback or write allocate error */
- result = 0;
+ result = EACCES;
} else
if (frame->tf_dsr & CMMU_DSR_WE) {
/* write fault */