/[osn-commons]/trunk/plibc/x86_64/syscalls.s
ViewVC logotype

Contents of /trunk/plibc/x86_64/syscalls.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 47 - (show annotations)
Thu Aug 15 18:10:51 2024 UTC (7 months, 2 weeks ago) by rakinar2
File MIME type: text/x-asm
File size: 689 byte(s)
feat: add plibc to the project
1 .text
2
3 .globl write
4 .type write, @function
5
6 write:
7 mov $1, %rax
8 syscall
9 ret
10
11 .globl exit
12 .type exit, @function
13 exit:
14 mov $60, %rax
15 syscall
16 ret
17
18 .globl sbrk
19 .type sbrk, @function
20 sbrk:
21 mov $12, %rax
22 syscall
23 ret
24
25 .globl brk
26 .type brk, @function
27 brk:
28 mov $0, %rdi
29 call sbrk
30 ret
31
32 .globl mmap
33 .type mmap, @function
34
35 mmap:
36 mov $9, %rax
37 syscall
38 ret
39
40 .globl munmap
41 .type munmap, @function
42
43 munmap:
44 mov $11, %rax
45 syscall
46 ret
47
48 .globl sysinfo
49 .type sysinfo, @function
50
51 sysinfo:
52 mov $99, %rax
53 syscall
54 ret
55
56 .global kill
57 .type kill, @function
58
59 kill:
60 mov $62, %rax
61 syscall
62
63 .section .note.GNU-stack,"",@progbits

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26