Page MenuHomeFreeBSD

D62269.1796223429.diff
No OneTemporary

Authored By
Unknown
Size
607 B
Referenced Files
None
Subscribers
None

D62269.1796223429.diff

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

Mime Type
text/plain
Expires
Wed, Dec 2, 2:57 PM (22 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42140754
Default Alt Text
D62269.1796223429.diff (607 B)

Event Timeline