artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcd4cc8
)
Load the fault handler into the correct register.
author
drahn
<drahn@openbsd.org>
Sat, 15 May 2021 00:04:32 +0000
(
00:04
+0000)
committer
drahn
<drahn@openbsd.org>
Sat, 15 May 2021 00:04:32 +0000
(
00:04
+0000)
Having the onfault dance in a macro makes this almost unreadable.
Initial failure found by deraadt, cause finally found.
sys/arch/riscv64/riscv64/copy.S
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/riscv64/copy.S
b/sys/arch/riscv64/riscv64/copy.S
index
9412945
..
84fa644
100644
(file)
--- a/
sys/arch/riscv64/riscv64/copy.S
+++ b/
sys/arch/riscv64/riscv64/copy.S
@@
-1,4
+1,4
@@
-/* $OpenBSD: copy.S,v 1.
2 2021/05/12 01:20:52 jsg Exp $
*/
+/* $OpenBSD: copy.S,v 1.
3 2021/05/15 00:04:32 drahn Exp $
*/
/*
* Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
@@
-94,7
+94,7
@@
ENTRY(copyout)
li a4, VM_MAXUSER_ADDRESS
bgt a3, a4, .Lcopyiofault_nopcb
- la a
4
, .Lcopyiofault_user
+ la a
3
, .Lcopyiofault_user
SWAP_FAULT_HANDLER(a3, a4, a5)
ENTER_USER_ACCESS(a4)