Displaying 4 results from an estimated 4 matches for "__syscall_checkandout".
2011 Jan 29
1
[PATCH] Re: klibc barfs on m68k syscall interface
...d1 /* orig.sp+4: arg 1 */
+ trap #0
+- cmpi.l #-4095, %d0
+- blt.l 1f
++ move.l %a1, %d2 /* restore d2 from a1 (scratch) */
++ move.l (%sp)+, %d3 /* pop d3..d5, see above */
++ move.l (%sp)+, %d4
++ move.l (%sp)+, %d5
++
++ /* syscall is done, result in %d0, registers are restored */
++ .globl __syscall_checkandout
++__syscall_checkandout:
++ /* now check for error */
++ cmp.l #-4095, %d0
++ bcs.l 1f /* jmp short if _not_ error */
++
++ /* prepare for error return */
+ neg.l %d0
+ move.l %d0, (errno)
+- moveq #-1, %d0
+-1:
+- movea.l %d0, %a0 /* Redundant return */
+- movem.l (%sp)+, %d2-%d6 /* Restore re...
2011 Jan 29
0
[PATCH] Fix m68k syscall API and support 6-argument syscalls.
...16(%sp), %d1 /* orig.sp+4: arg 1 */
trap #0
- cmpi.l #-4095, %d0
- blt.l 1f
+ move.l %a1, %d2 /* restore d2 from a1 (scratch) */
+ move.l (%sp)+, %d3 /* pop d3..d5, see above */
+ move.l (%sp)+, %d4
+ move.l (%sp)+, %d5
+
+ /* syscall is done, result in %d0, registers are restored */
+ .globl __syscall_checkandout
+__syscall_checkandout:
+ /* now check for error */
+ cmp.l #-4095, %d0
+ bcs.l 1f /* jmp short if _not_ error */
+
+ /* prepare for error return */
neg.l %d0
move.l %d0, (errno)
- moveq #-1, %d0
-1:
- movea.l %d0, %a0 /* Redundant return */
- movem.l (%sp)+, %d2-%d6 /* Restore registers */
+...
2012 Jan 29
5
[PATCH 0/2 v3] mkstemp() and m68k support
Hi,
after a year, I decided to hack on klibc again. I?ve reworked
both the patch to add mkstemp(), discussing to use AT_RANDOM
as cheap entropy source on IRC (if there will ever be another
entropy consumer, I can quickly write a minimal arc4random()
seeded from it, as it has only 16 octets), capable of making
a working mksh (static and shared) on amd64/xen, and the m68k
support code, leading to
2012 May 15
5
[PATCH 0/5] resubmitting pending patches
Hi,
I?ve gone through the mailing list archives and hereby want
to resubmit my pending patches. Most are independent of each
other, except the m68k patch which will only be complete if
sigsuspend is also fixed. (It can be applied before that,
though.)
http://www.zytor.com/pipermail/klibc/2012-January/003173.html
[PATCH] fix m68k support
Resubmitted here as 0005. While there was a question from