~ubuntu-branches/ubuntu/wily/musl/wily

« back to all changes in this revision

Viewing changes to src/internal/sh/syscall.s

  • Committer: Package Import Robot
  • Author(s): Kevin Bortis
  • Date: 2014-03-22 09:39:56 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140322093956-1oc4xt9b2n3domo7
Tags: 1.0.0-1
* Import upstream version 1.0.0
* Provide musl-ldd (Closes: #732169)
* Arch independent ld-musl-config (Closes: #739205)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.global __syscall
 
2
.type   __syscall, @function
 
3
__syscall:
 
4
        ! The kernel syscall entry point documents that the trap number indicates
 
5
        ! the number of arguments being passed, but it then ignores that information.
 
6
        ! Since we do not actually know how many arguments are being passed, we will
 
7
        ! say there are six, since that is the maximum we support here.
 
8
        mov r4, r3
 
9
        mov r5, r4
 
10
        mov r6, r5
 
11
        mov r7, r6
 
12
        mov.l @r15, r7
 
13
        mov.l @(4,r15), r0
 
14
        mov.l @(8,r15), r1
 
15
        trapa #22
 
16
        or r0, r0
 
17
        or r0, r0
 
18
        or r0, r0
 
19
        or r0, r0
 
20
        or r0, r0
 
21
        rts
 
22
         nop