Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178185521
D62272.1796216055.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
D62272.1796216055.diff
View Options
diff --git a/sys/powerpc/linux/linux_machdep.c b/sys/powerpc/linux/linux_machdep.c
--- a/sys/powerpc/linux/linux_machdep.c
+++ b/sys/powerpc/linux/linux_machdep.c
@@ -83,7 +83,9 @@
if (stack != 0)
td->td_frame->fixreg[1] = stack;
- td->td_frame->fixreg[0] = td->td_frame->fixreg[1];
+ /* The child returns 0 with CR0[SO] clear, see cpu_copy_thread(). */
+ td->td_frame->fixreg[LINUX_FIRSTARG] = 0;
+ td->td_frame->cr &= ~0x10000000;
return (0);
}
diff --git a/sys/powerpc/linux/linux_proto.h b/sys/powerpc/linux/linux_proto.h
--- a/sys/powerpc/linux/linux_proto.h
+++ b/sys/powerpc/linux/linux_proto.h
@@ -292,8 +292,8 @@
char flags_l_[PADL_(l_ulong)]; l_ulong flags; char flags_r_[PADR_(l_ulong)];
char stack_l_[PADL_(l_ulong)]; l_ulong stack; char stack_r_[PADR_(l_ulong)];
char parent_tidptr_l_[PADL_(l_int *)]; l_int * parent_tidptr; char parent_tidptr_r_[PADR_(l_int *)];
- char child_tidptr_l_[PADL_(l_int *)]; l_int * child_tidptr; char child_tidptr_r_[PADR_(l_int *)];
char tls_l_[PADL_(l_ulong)]; l_ulong tls; char tls_r_[PADR_(l_ulong)];
+ char child_tidptr_l_[PADL_(l_int *)]; l_int * child_tidptr; char child_tidptr_r_[PADR_(l_int *)];
};
struct linux_setdomainname_args {
char name_l_[PADL_(char *)]; char * name; char name_r_[PADR_(char *)];
diff --git a/sys/powerpc/linux/linux_systrace_args.c b/sys/powerpc/linux/linux_systrace_args.c
--- a/sys/powerpc/linux/linux_systrace_args.c
+++ b/sys/powerpc/linux/linux_systrace_args.c
@@ -690,8 +690,8 @@
iarg[a++] = p->flags; /* l_ulong */
iarg[a++] = p->stack; /* l_ulong */
uarg[a++] = (intptr_t)p->parent_tidptr; /* l_int * */
- uarg[a++] = (intptr_t)p->child_tidptr; /* l_int * */
iarg[a++] = p->tls; /* l_ulong */
+ uarg[a++] = (intptr_t)p->child_tidptr; /* l_int * */
*n_args = 5;
break;
}
@@ -3828,10 +3828,10 @@
p = "userland l_int *";
break;
case 3:
- p = "userland l_int *";
+ p = "l_ulong";
break;
case 4:
- p = "l_ulong";
+ p = "userland l_int *";
break;
default:
break;
diff --git a/sys/powerpc/linux/syscalls.master b/sys/powerpc/linux/syscalls.master
--- a/sys/powerpc/linux/syscalls.master
+++ b/sys/powerpc/linux/syscalls.master
@@ -544,8 +544,8 @@
l_ulong flags,
l_ulong stack,
l_int *parent_tidptr,
- l_int *child_tidptr,
- l_ulong tls
+ l_ulong tls,
+ l_int *child_tidptr
);
}
121 AUE_SYSCTL STD {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 2, 12:54 PM (20 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42141162
Default Alt Text
D62272.1796216055.diff (2 KB)
Attached To
Mode
D62272: linuxulator/powerpc: fix the argument order of clone()
Attached
Detach File
Event Timeline