Displaying 1 result from an estimated 1 matches for "lerrno".
Did you mean:
errno
2011 Aug 08
0
[PATCH/RFC] Add initial avr32 port
...4 @@
+/*
+ * arch/avr32/syscall.S
+ *
+ * System call common handling
+ */
+
+ .type __syscall_common, at function
+ .globl __syscall_common
+
+ .align 4
+__syscall_common:
+ ld.w r3, sp[16]
+ scall
+ cp.w r12, -4095
+ brlo .Ldone
+ neg r12
+ lddpc r3, .Lerrno
+ st.w r3[0], r12
+.Ldone:
+ ldm sp++, r3,r5,r6,pc
+
+ .align 4
+.Lerrno:
+ .long errno
diff --git a/usr/klibc/arch/avr32/sysstub.ph b/usr/klibc/arch/avr32/sysstub.ph
new file mode 100644
index 0000000..912cc7b
--- /dev/null
+++ b/usr/klibc/arch/avr32/sysstub.ph
@@ -0,0 +1,31 @...