diff options
author | John Baldwin <jhb@FreeBSD.org> | 2020-04-27 20:37:11 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2020-04-27 20:37:11 +0000 |
commit | 342aba7c681de48227d66fa9f5d128f8de651530 (patch) | |
tree | e24a527f8b3478c98bedb5329be7da4182c4b11b /sys/riscv | |
parent | 21bc65cb6a23fd1d3f68800f8b4f67b52e02333b (diff) | |
download | src-test2-342aba7c681de48227d66fa9f5d128f8de651530.tar.gz src-test2-342aba7c681de48227d66fa9f5d128f8de651530.zip |
Notes
Diffstat (limited to 'sys/riscv')
-rw-r--r-- | sys/riscv/riscv/trap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/riscv/riscv/trap.c b/sys/riscv/riscv/trap.c index 829bfb0bc523..b7ef9bf532ba 100644 --- a/sys/riscv/riscv/trap.c +++ b/sys/riscv/riscv/trap.c @@ -157,13 +157,12 @@ static void svc_handler(struct trapframe *frame) { struct thread *td; - int error; td = curthread; td->td_frame = frame; - error = syscallenter(td); - syscallret(td, error); + syscallenter(td); + syscallret(td); } static void |