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

« back to all changes in this revision

Viewing changes to src/pkg/syscall/asm_openbsd_386.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 int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32);
13
16
// Trap # in AX, args on stack above caller pc.
14
17
 
15
 
TEXT    ·Syscall(SB),NOSPLIT,$0-32
 
18
TEXT    ·Syscall(SB),NOSPLIT,$0-28
16
19
        CALL    runtime·entersyscall(SB)
17
20
        MOVL    4(SP), AX       // syscall entry
18
21
        // slide args down on top of system call number
36
39
        CALL    runtime·exitsyscall(SB)
37
40
        RET
38
41
 
39
 
TEXT    ·Syscall6(SB),NOSPLIT,$0-44
 
42
TEXT    ·Syscall6(SB),NOSPLIT,$0-40
40
43
        CALL    runtime·entersyscall(SB)
41
44
        MOVL    4(SP), AX       // syscall entry
42
45
        // slide args down on top of system call number
63
66
        CALL    runtime·exitsyscall(SB)
64
67
        RET
65
68
 
66
 
TEXT    ·Syscall9(SB),NOSPLIT,$0-56
 
69
TEXT    ·Syscall9(SB),NOSPLIT,$0-52
67
70
        CALL    runtime·entersyscall(SB)
68
71
        MOVL    4(SP), AX       // syscall entry
69
72
        // slide args down on top of system call number
93
96
        CALL    runtime·exitsyscall(SB)
94
97
        RET
95
98
 
96
 
TEXT ·RawSyscall(SB),NOSPLIT,$0-32
 
99
TEXT ·RawSyscall(SB),NOSPLIT,$0-28
97
100
        MOVL    4(SP), AX       // syscall entry
98
101
        // slide args down on top of system call number
99
102
        LEAL            8(SP), SI
114
117
        MOVL    $0, 28(SP)      // errno
115
118
        RET
116
119
 
117
 
TEXT    ·RawSyscall6(SB),NOSPLIT,$0-44
 
120
TEXT    ·RawSyscall6(SB),NOSPLIT,$0-40
118
121
        MOVL    4(SP), AX       // syscall entry
119
122
        // slide args down on top of system call number
120
123
        LEAL            8(SP), SI