~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/syscall/asm_darwin_amd64.s

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2014-11-18 15:12:26 UTC
  • mfrom: (14.2.12 vivid-proposed)
  • Revision ID: package-import@ubuntu.com-20141118151226-zug7vn93mn3dtiz3
Tags: 2:1.3.2-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - Support co-installability with gccgo-go tool:
    - d/rules,golang-go.install: Rename bin/go -> bin/golang-go
    - d/golang-go.{postinst,prerm}: Install/remove /usr/bin/go using
      alternatives.
  - d/copyright: Amendments for full compiliance with copyright format.
  - d/control: Demote golang-go.tools to Suggests to support Ubuntu MIR.
  - dropped patches (now upstream):
    - d/p/issue27650045_40001_50001.diff
    - d/p/issue28050043_60001_70001.diff
    - d/p/issue54790044_100001_110001.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
// Use of this source code is governed by a BSD-style
3
3
// license that can be found in the LICENSE file.
4
4
 
 
5
// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
 
6
// so that go vet can check that they are correct.
 
7
 
5
8
#include "../../cmd/ld/textflag.h"
6
9
 
7
10
//
12
15
// func Syscall6(trap int64, a1, a2, a3, a4, a5, a6 int64) (r1, r2, err int64);
13
16
// Trap # in AX, args in DI SI DX, return in AX DX
14
17
 
15
 
TEXT    ·Syscall(SB),NOSPLIT,$0-64
 
18
TEXT    ·Syscall(SB),NOSPLIT,$0-56
16
19
        CALL    runtime·entersyscall(SB)
17
20
        MOVQ    16(SP), DI
18
21
        MOVQ    24(SP), SI
36
39
        CALL    runtime·exitsyscall(SB)
37
40
        RET
38
41
 
39
 
TEXT    ·Syscall6(SB),NOSPLIT,$0-88
 
42
TEXT    ·Syscall6(SB),NOSPLIT,$0-80
40
43
        CALL    runtime·entersyscall(SB)
41
44
        MOVQ    16(SP), DI
42
45
        MOVQ    24(SP), SI
60
63
        CALL    runtime·exitsyscall(SB)
61
64
        RET
62
65
 
63
 
TEXT ·RawSyscall(SB),NOSPLIT,$0-64
 
66
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
64
67
        MOVQ    16(SP), DI
65
68
        MOVQ    24(SP), SI
66
69
        MOVQ    32(SP), DX
81
84
        MOVQ    $0, 56(SP)      // errno
82
85
        RET
83
86
 
84
 
TEXT    ·RawSyscall6(SB),NOSPLIT,$0-88
 
87
TEXT    ·RawSyscall6(SB),NOSPLIT,$0-80
85
88
        MOVQ    16(SP), DI
86
89
        MOVQ    24(SP), SI
87
90
        MOVQ    32(SP), DX