svn commit: r366454 - head/sys/riscv/riscv
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Oct 5 18:41:35 UTC 2020
Author: trasz
Date: Mon Oct 5 18:41:35 2020
New Revision: 366454
URL: https://svnweb.freebsd.org/changeset/base/366454
Log:
Drop useless assignment, and add a KASSERT to make sure it really was useless.
Reviewed by: nick, jhb
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D26649
Modified:
head/sys/riscv/riscv/trap.c
Modified: head/sys/riscv/riscv/trap.c
==============================================================================
--- head/sys/riscv/riscv/trap.c Mon Oct 5 18:17:50 2020 (r366453)
+++ head/sys/riscv/riscv/trap.c Mon Oct 5 18:41:35 2020 (r366454)
@@ -163,7 +163,9 @@ svc_handler(struct trapframe *frame)
struct thread *td;
td = curthread;
- td->td_frame = frame;
+
+ KASSERT(td->td_frame == frame,
+ ("%s: td_frame %p != frame %p", __func__, td->td_frame, frame));
syscallenter(td);
syscallret(td);
More information about the svn-src-all
mailing list