Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162700781
D16008.id44425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16008.id44425.diff
View Options
Index: sys/arm64/arm64/vm_machdep.c
===================================================================
--- sys/arm64/arm64/vm_machdep.c
+++ sys/arm64/arm64/vm_machdep.c
@@ -36,6 +36,7 @@
#include <sys/proc.h>
#include <sys/sf_buf.h>
#include <sys/signal.h>
+#include <sys/sysent.h>
#include <sys/unistd.h>
#include <vm/vm.h>
@@ -154,7 +155,7 @@
break;
default:
frame->tf_spsr |= PSR_C; /* carry bit */
- frame->tf_x[0] = error;
+ frame->tf_x[0] = SV_ABI_ERRNO(td->td_proc, error);
break;
}
}
Index: sys/arm64/linux/linux_sysvec.c
===================================================================
--- sys/arm64/linux/linux_sysvec.c
+++ sys/arm64/linux/linux_sysvec.c
@@ -143,25 +143,9 @@
static void
linux_set_syscall_retval(struct thread *td, int error)
{
- struct trapframe *frame;
- frame = td->td_frame;
-
- switch (error) {
- case 0:
- frame->tf_x[0] = td->td_retval[0];
- frame->tf_x[1] = td->td_retval[1];
- break;
- case ERESTART:
- /* LINUXTODO: verify */
- frame->tf_elr -= 4;
- break;
- case EJUSTRETURN:
- break;
- default:
- frame->tf_x[0] = error;
- break;
- }
+ td->td_retval[1] = td->tf_x[1];
+ cpu_set_syscall_retval(td, error);
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 16, 10:35 PM (10 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35150615
Default Alt Text
D16008.id44425.diff (1 KB)
Attached To
Mode
D16008: Allow the linuxulator to use a common cpu_set_syscall_retval
Attached
Detach File
Event Timeline
Log In to Comment