Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175168243
D26990.id78911.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
545 B
Referenced Files
None
Subscribers
None
D26990.id78911.diff
View Options
Index: head/sys/riscv/riscv/vm_machdep.c
===================================================================
--- head/sys/riscv/riscv/vm_machdep.c
+++ head/sys/riscv/riscv/vm_machdep.c
@@ -132,12 +132,14 @@
frame = td->td_frame;
- switch (error) {
- case 0:
+ if (__predict_true(error == 0)) {
frame->tf_a[0] = td->td_retval[0];
frame->tf_a[1] = td->td_retval[1];
frame->tf_t[0] = 0; /* syscall succeeded */
- break;
+ return;
+ }
+
+ switch (error) {
case ERESTART:
frame->tf_sepc -= 4; /* prev instruction */
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 9, 7:59 PM (4 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40501187
Default Alt Text
D26990.id78911.diff (545 B)
Attached To
Mode
D26990: Optimize set_syscall_retval for riscv
Attached
Detach File
Event Timeline
Log In to Comment