Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178183000
D62269.1796212371.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
607 B
Referenced Files
None
Subscribers
None
D62269.1796212371.diff
View Options
diff --git a/sys/powerpc/linux/linux_sysvec.c b/sys/powerpc/linux/linux_sysvec.c
--- a/sys/powerpc/linux/linux_sysvec.c
+++ b/sys/powerpc/linux/linux_sysvec.c
@@ -177,7 +177,12 @@
tf->srr0 -= 4;
break;
default:
- tf->fixreg[LINUX_FIRSTARG] = bsd_to_linux_errno(error);
+ /*
+ * The sc instruction reports a failure through CR0[SO] with
+ * a positive errno in r3. bsd_to_linux_errno() returns the
+ * negated value that the other architectures hand back.
+ */
+ tf->fixreg[LINUX_FIRSTARG] = -bsd_to_linux_errno(error);
tf->cr |= 0x10000000; /* Set summary overflow */
break;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 2, 11:52 AM (19 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42140754
Default Alt Text
D62269.1796212371.diff (607 B)
Attached To
Mode
D62269: linuxulator/powerpc: return positive errno values
Attached
Detach File
Event Timeline