about summary refs log tree commit diff
path: root/src/internal/i386/syscall.s
blob: 5b19a1b86cc8a8cd38fd713ce6650116f647c856 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.global __syscall
.type __syscall,%function
__syscall:
	pushl %ebx
	pushl %esi
	pushl %edi
	pushl %ebp
	movl 20(%esp),%eax
	movl 24(%esp),%ebx
	movl 28(%esp),%ecx
	movl 32(%esp),%edx
	movl 36(%esp),%esi
	movl 40(%esp),%edi
	movl 44(%esp),%ebp
	int $128
	popl %ebp
	popl %edi
	popl %esi
	popl %ebx
	ret
.size __syscall,.-__syscall