1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
.hidden __sysinfo
.global __vsyscall
.type __vsyscall,@function
__vsyscall:
push %edi
push %ebx
mov %edx,%ebx
mov %edi,%edx
mov 12(%esp),%edi
push %eax
call 1f
2: pop %ebx
pop %ebx
pop %edi
ret
1: mov (%esp),%eax
add $[__sysinfo-2b],%eax
mov (%eax),%eax
test %eax,%eax
jz 1f
push %eax
mov 8(%esp),%eax
ret
1: mov 4(%esp),%eax
int $128
ret
.global __vsyscall6
.type __vsyscall6,@function
__vsyscall6:
push %ebp
push %eax
mov 12(%esp), %ebp
mov (%ebp), %eax
mov 4(%ebp), %ebp
push %eax
mov 4(%esp),%eax
call __vsyscall
pop %ebp
pop %ebp
pop %ebp
ret
.global __syscall
.type __syscall,@function
__syscall:
lea 24(%esp),%eax
push %esi
push %edi
push %eax
mov 16(%esp),%eax
mov 20(%esp),%edx
mov 24(%esp),%ecx
mov 28(%esp),%edi
mov 32(%esp),%esi
call __vsyscall6
pop %edi
pop %edi
pop %esi
ret
|