Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F12142392
asm_linux_386.s
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
asm_linux_386.s
View Options
//
Copyright
2009
The
Go
Authors.
All
rights
reserved.
//
Use
of
this
source
code
is
governed
by
a
BSD-style
//
license
that
can
be
found
in
the
LICENSE
file.
//
+
build
!
gccgo
#include "textflag.h"
//
//
System
calls
for
386
,
Linux
//
//
See
..
/
runtime
/
sys_linux_386.s
for
the
reason
why
we
always
use
int
0x80
//
instead
of
the
glibc-specific
"
CALL
0x10
(
GS
)
"
.
#define INVOKE_SYSCALL INT $0x80
//
Just
jump
to
package
syscall
'
s
implementation
for
all
these
functions.
//
The
runtime
may
know
about
them.
TEXT
·
Syscall
(
SB
),
NOSPLIT
,
$0-28
JMP
syscall
·
Syscall
(
SB
)
TEXT
·
Syscall6
(
SB
),
NOSPLIT
,
$0-40
JMP
syscall
·
Syscall6
(
SB
)
TEXT
·
SyscallNoError
(
SB
),
NOSPLIT
,
$0-24
CALL
runtime
·
entersyscall
(
SB
)
MOVL
trap
+
0
(
FP
),
AX
//
syscall
entry
MOVL
a1
+
4
(
FP
),
BX
MOVL
a2
+
8
(
FP
),
CX
MOVL
a3
+
12
(
FP
),
DX
MOVL
$0
,
SI
MOVL
$0
,
DI
INVOKE_SYSCALL
MOVL
AX
,
r1
+
16
(
FP
)
MOVL
DX
,
r2
+
20
(
FP
)
CALL
runtime
·
exitsyscall
(
SB
)
RET
TEXT
·
RawSyscall
(
SB
),
NOSPLIT
,
$0-28
JMP
syscall
·
RawSyscall
(
SB
)
TEXT
·
RawSyscall6
(
SB
),
NOSPLIT
,
$0-40
JMP
syscall
·
RawSyscall6
(
SB
)
TEXT
·
RawSyscallNoError
(
SB
),
NOSPLIT
,
$0-24
MOVL
trap
+
0
(
FP
),
AX
//
syscall
entry
MOVL
a1
+
4
(
FP
),
BX
MOVL
a2
+
8
(
FP
),
CX
MOVL
a3
+
12
(
FP
),
DX
MOVL
$0
,
SI
MOVL
$0
,
DI
INVOKE_SYSCALL
MOVL
AX
,
r1
+
16
(
FP
)
MOVL
DX
,
r2
+
20
(
FP
)
RET
TEXT
·
socketcall
(
SB
),
NOSPLIT
,
$0-36
JMP
syscall
·
socketcall
(
SB
)
TEXT
·
rawsocketcall
(
SB
),
NOSPLIT
,
$0-36
JMP
syscall
·
rawsocketcall
(
SB
)
TEXT
·
seek
(
SB
),
NOSPLIT
,
$0-28
JMP
syscall
·
seek
(
SB
)
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Oct 9, 8:41 PM (15 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3440781
Attached To
rWCLI writeas-cli
Event Timeline
Log In to Comment