Annotation of researchv9/libc/nsys/syscall.s, revision 1.1.1.1

1.1       root        1:        .globl  _syscall
                      2:        .comm   _errno,4
                      3: _syscall:
                      4:        movl    sp@(4),d0       | syscall number
                      5:        movl    sp@+,sp@        | fix arguments
                      6:        linkw   a6,#0
                      7:        movl    d0,sp@-         | place syscall number on back on stack
                      8:        trap    #0
                      9:        unlk    a6
                     10:        bcs     L1
                     11:        movl    sp@,sp@-        | restore stack
                     12:        movl    d0,a0           | for sbreak
                     13:        rts
                     14: L1:
                     15:        movl    sp@,sp@-        | restore stack
                     16:        movl    d0,_errno
                     17:        movl    #-1,d0
                     18:        movl    d0,a0
                     19:        rts

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.