]> Cypherpunks.ru repositories - gostls13.git/blob - src/runtime/rt0_linux_386.s
[dev.garbage] all: merge dev.power64 (7667e41f3ced) into dev.garbage
[gostls13.git] / src / runtime / rt0_linux_386.s
1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 #include "textflag.h"
6
7 TEXT _rt0_386_linux(SB),NOSPLIT,$8
8         MOVL    8(SP), AX
9         LEAL    12(SP), BX
10         MOVL    AX, 0(SP)
11         MOVL    BX, 4(SP)
12         CALL    runtime·linux_setup_vdso(SB)
13         CALL    main(SB)
14         INT     $3
15
16 TEXT main(SB),NOSPLIT,$0
17         JMP     runtime·rt0_go(SB)
18
19 TEXT _fallback_vdso(SB),NOSPLIT,$0
20         INT     $0x80
21         RET
22
23 DATA    runtime·_vdso(SB)/4, $_fallback_vdso(SB)
24 GLOBL   runtime·_vdso(SB), NOPTR, $4
25