-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathunistd.s
More file actions
379 lines (375 loc) · 20.2 KB
/
unistd.s
File metadata and controls
379 lines (375 loc) · 20.2 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
@
@ Define as chamadas do sistema Linux.
@ Esta lista é do Raspbian Buster
@
.EQU sys_restart_syscall, 0 @ restart a system call
.EQU sys_exit, 1 @ cause normal process termination
.EQU sys_fork, 2 @ create a child process
.EQU sys_read, 3 @ read from a file descriptor
.EQU sys_write, 4 @ write to a file descriptor
.EQU sys_open, 5 @ open and possibly create a file
.EQU sys_close, 6 @ close a file descriptor
.EQU sys_creat, 8 @ create a new file
.EQU sys_link, 9 @ make a new name for a file
.EQU sys_unlink, 10 @ delete a name and the file it refers to
.EQU sys_execve, 11 @ execute program
.EQU sys_chdir, 12 @ change working directory
.EQU sys_mknod, 14 @ create a special or ordinary file
.EQU sys_chmod, 15 @ change file mode bits
.EQU sys_lchown, 16 @ change the owner/group of a symbolic link
.EQU sys_lseek, 19 @ reposition read/write file offset
.EQU sys_getpid, 20 @ get process identification
.EQU sys_mount, 21 @ mount filesystem
.EQU sys_setuid, 23 @ set user identity
.EQU sys_getuid, 24 @ get user identity
.EQU sys_ptrace, 26 @ process trace
.EQU sys_pause, 29 @ wait for signal
.EQU sys_access, 33 @ check user's permissions for a file
.EQU sys_nice, 34 @ change process priority
.EQU sys_sync, 36 @ commit filesystem caches to disk
.EQU sys_kill, 37 @ send signal to a process
.EQU sys_rename, 38 @ change the name or location of a file
.EQU sys_mkdir, 39 @ create a directory
.EQU sys_rmdir, 40 @ delete a directory
.EQU sys_dup, 41 @ duplicate a file descriptor
.EQU sys_pipe, 42 @ create pipe
.EQU sys_times, 43 @ get process times
.EQU sys_brk, 45 @ change data segment size
.EQU sys_setgid, 46 @ set group identity
.EQU sys_getgid, 47 @ get group identity
.EQU sys_geteuid, 49 @ get user identity
.EQU sys_getegid, 50 @ get group identity
.EQU sys_acct, 51 @ switch process accounting on or off
.EQU sys_umount2, 52 @ unmount filesystem
.EQU sys_ioctl, 54 @ control device
.EQU sys_fcntl, 55 @ manipulate file descriptor
.EQU sys_setpgid, 57 @ set process group
.EQU sys_umask, 60 @ set file mode creation mask
.EQU sys_chroot, 61 @ change root directory
.EQU sys_ustat, 62 @ get filesystem statistics
.EQU sys_dup2, 63 @ duplicate a file descriptor
.EQU sys_getppid, 64 @ get the parent process ID
.EQU sys_getpgrp, 65 @ get process group
.EQU sys_setsid, 66 @ Sets the process group ID
.EQU sys_sigaction, 67 @ examine and change a signal action
.EQU sys_setreuid, 70 @ set real and/or effective user ID
.EQU sys_setregid, 71 @ set real and/or effective group ID
.EQU sys_sigsuspend, 72 @ wait for a signal
.EQU sys_sigpending, 73 @ examine pending signals
.EQU sys_sethostname, 74 @ set hostname
.EQU sys_setrlimit, 75 @ control maximum resource consumption
.EQU sys_getrusage, 77 @ get resource usage
.EQU sys_gettimeofday, 78 @ get time
.EQU sys_settimeofday, 79 @ set time
.EQU sys_getgroups, 80 @ get list of supplementary group IDs
.EQU sys_setgroups, 81 @ set list of supplementary group IDs
.EQU sys_symlink, 83 @ make a new name for a file
.EQU sys_readlink, 85 @ read value of a symbolic link
.EQU sys_uselib, 86 @load shared library
.EQU sys_swapon, 87 @ start swapping to file/device
.EQU sys_reboot, 88 @ reboot
.EQU sys_munmap, 91 @ unmap files or devices into memory
.EQU sys_truncate, 92 @ truncate a file to a specified length
.EQU sys_ftruncate, 93 @ truncate a file to a specified length
.EQU sys_fchmod, 94 @ change permissions of a file
.EQU sys_fchown, 95 @ change ownership of a file
.EQU sys_getpriority, 96 @ get program scheduling priority
.EQU sys_setpriority, 97 @ set program scheduling priority
.EQU sys_statfs, 99 @ get filesystem statistics
.EQU sys_fstatfs, 100 @ get filesystem statistics
.EQU sys_syslog, 103 @ read/clear kernel message ring buffer
.EQU sys_setitimer, 104 @ set value of an interval timer
.EQU sys_getitimer, 105 @ get value of an interval timer
.EQU sys_stat, 106 @ get file status
.EQU sys_lstat, 107 @ get file status
.EQU sys_fstat, 108 @ get file status
.EQU sys_vhangup, 111 @ virtually hang up the current terminal
.EQU sys_wait4, 114 @ wait for process to change state
.EQU sys_swapoff, 115 @ stop swapping to file/device
.EQU sys_sysinfo, 116 @ return system information
.EQU sys_fsync, 118 @ synch a file's in-core state with storage
.EQU sys_sigreturn, 119 @ return from signal handler
.EQU sys_clone, 120 @ create a child process
.EQU sys_setdomainname, 121 @ set NIS domain name
.EQU sys_uname, 122 @ get name and info about current kernel
.EQU sys_adjtimex, 124 @ tune kernel clock
.EQU sys_mprotect, 125 @ set protection on a region of memory
.EQU sys_sigprocmask, 126 @ examine and change blocked signals
.EQU sys_init_module, 128 @ load a kernel module
.EQU sys_delete_module, 129 @ unload a kernel module
.EQU sys_quotactl, 131 @ manipulate disk quotas
.EQU sys_getpgid, 132 @ get process group
.EQU sys_fchdir, 133 @ change working directory
.EQU sys_bdflush, 134 @ start, flush, or tune buffer-dirty-flush
.EQU sys_sysfs, 135 @ get filesystem type information
.EQU sys_personality, 136 @ set the process execution domain
.EQU sys_setfsuid, 138 @ set user identity used for filesys checks
.EQU sys_setfsgid, 139 @ set group ident used for filesys checks
.EQU sys__llseek, 140 @ reposition read/write file offset
.EQU sys_getdents, 141 @ get directory entries
.EQU sys__newselect, 142 @ synchronous I/O multiplexing
.EQU sys_flock, 143 @ apply an advisory lock on an open file
.EQU sys_msync, 144 @ synchronize a file with a memory map
.EQU sys_readv, 145 @ read data into multiple buffers
.EQU sys_writev, 146 @ write data into multiple buffers
.EQU sys_getsid, 147 @ get session ID
.EQU sys_fdatasync, 148 @ sync a file's in-core state with storage
.EQU sys__sysctl, 149 @ read/write system parameters
.EQU sys_mlock, 150 @ lock memory
.EQU sys_munlock, 151 @ unlock memory
.EQU sys_mlockall, 152 @ lock memory
.EQU sys_munlockall, 153 @ unlock memory
.EQU sys_sched_setparam, 154 @ set scheduling parameters
.EQU sys_sched_getparam, 155 @ get scheduling parameters
.EQU sys_sched_setscheduler, 156 @ set scheduling policy/params
.EQU sys_sched_getscheduler, 157 @ get scheduling policy/params
.EQU sys_sched_yield, 158 @ yield the processor
.EQU sys_sched_get_priority_max, 159 @ get static priority max
.EQU sys_sched_get_priority_min, 160 @ get static priority min
.EQU sys_sched_rr_get_interval, 161 @ get the SCHED_RR interval
.EQU sys_nanosleep, 162 @ high-resolution sleep
.EQU sys_mremap, 163 @ remap a virtual memory address
.EQU sys_setresuid, 164 @ set real, effective and saved user ID
.EQU sys_getresuid, 165 @ get real, effective and saved user ID
.EQU sys_poll, 168 @ wait for some event on a file descriptor
.EQU sys_nfsservctl, 169 @ syscall interface to kernel nfs daemon
.EQU sys_setresgid, 170 @ set real, effective and saved group ID
.EQU sys_getresgid, 171 @ get real, effective and saved group ID
.EQU sys_prctl, 172 @ operations on a process
.EQU sys_rt_sigreturn, 173 @ return from signal and cleanup stack
.EQU sys_rt_sigaction, 174 @ examine and change a signal action
.EQU sys_rt_sigprocmask, 175 @ examine and change blocked signals
.EQU sys_rt_sigpending, 176 @ examine pending signals
.EQU sys_rt_sigtimedwait, 177 @ synchronously wait for queued signals
.EQU sys_rt_sigqueueinfo, 178 @ queue a signal and data
.EQU sys_rt_sigsuspend, 179 @ wait for a signal
.EQU sys_pread64, 180 @ read from a file desc at a given offset
.EQU sys_pwrite64, 181 @ write to a file descriptor at a given offset
.EQU sys_chown, 182 @ change ownership of a file
.EQU sys_getcwd, 183 @ get current working directory
.EQU sys_capget, 184 @ get capabilities of thread(s)
.EQU sys_capset, 185 @ set capabilities of thread(s)
.EQU sys_sigaltstack, 186 @ set and/or get signal stack context
.EQU sys_sendfile, 187 @ transfer data between file descriptors
.EQU sys_vfork, 190 @ create a child process and block parent
.EQU sys_ugetrlimit, 191 @ get resource limits
.EQU sys_mmap2, 192 @ map files or devices into memory
.EQU sys_truncate64, 193 @ truncate a file to a specified length
.EQU sys_ftruncate64, 194 @ truncate a file to a specified length
.EQU sys_stat64, 195 @ get file status
.EQU sys_lstat64, 196 @ get file status
.EQU sys_fstat64, 197 @ get file status
.EQU sys_lchown32, 198 @ change ownership of a file
.EQU sys_getuid32, 199 @ get user identity
.EQU sys_getgid32, 200 @ get group identity
.EQU sys_geteuid32, 201 @ get user identity
.EQU sys_getegid32, 202 @ get group identity
.EQU sys_setreuid32, 203 @ set real and/or effective user ID
.EQU sys_setregid32, 204 @ set real and/or effective group ID
.EQU sys_getgroups32, 205 @ get list of supplementary group IDs
.EQU sys_setgroups32, 206 @ set list of supplementary group IDs
.EQU sys_fchown32, 207 @ change ownership of a file
.EQU sys_setresuid32, 208 @ set real, effective and saved user ID
.EQU sys_getresuid32, 209 @ get real, effective and saved user ID
.EQU sys_setresgid32, 210 @ set real, effective and saved group ID
.EQU sys_getresgid32, 211 @ get real, effective and saved group ID
.EQU sys_chown32, 212 @ change ownership of a file
.EQU sys_setuid32, 213 @ set user identity
.EQU sys_setgid32, 214 @ set group identity
.EQU sys_setfsuid32, 215 @ set user ident used for filesystem checks
.EQU sys_setfsgid32, 216 @ set group ident used for filesys checks
.EQU sys_getdents64, 217 @ get directory entries
.EQU sys_pivot_root, 218 @ change the root filesystem
.EQU sys_mincore, 219 @ whether pages are resident in memory
.EQU sys_madvise, 220 @ give advice about use of memory
.EQU sys_fcntl64, 221 @ manipulate file descriptor
.EQU sys_gettid, 224 @ get thread identification
.EQU sys_readahead, 225 @ initiate file readahead into page cache
.EQU sys_setxattr, 226 @ set an extended attribute value
.EQU sys_lsetxattr, 227 @ set an extended attribute value
.EQU sys_fsetxattr, 228 @ set an extended attribute value
.EQU sys_getxattr, 229 @ retrieve an extended attribute value
.EQU sys_lgetxattr, 230 @ retrieve an extended attribute value
.EQU sys_fgetxattr, 231 @ retrieve an extended attribute value
.EQU sys_listxattr, 232 @ list extended attribute names
.EQU sys_llistxattr, 233 @ list extended attribute names
.EQU sys_flistxattr, 234 @ list extended attribute names
.EQU sys_removexattr, 235 @ remove an extended attribute
.EQU sys_lremovexattr, 236 @ remove an extended attribute
.EQU sys_fremovexattr, 237 @ remove an extended attribute
.EQU sys_tkill, 238 @ send a signal to a thread
.EQU sys_sendfile64, 239 @ transfer data between file descriptors
.EQU sys_futex, 240 @ fast user-space locking
.EQU sys_sched_setaffinity, 241 @ set a thread's CPU affinity mask
.EQU sys_sched_getaffinity, 242 @ get a thread's CPU affinity mask
.EQU sys_io_setup, 243 @ create an asynchronous I/O context
.EQU sys_io_destroy, 244 @ destroy an asynchronous I/O context
.EQU sys_io_getevents, 245 @ read async I/O events from compl queue
.EQU sys_io_submit, 246 @ submit async I/O blocks for processing
.EQU sys_io_cancel, 247 @ cancel an outstanding async I/O operation
.EQU sys_exit_group, 248 @ exit all threads in a process
.EQU sys_lookup_dcookie, 249 @ return a directory entry's path
.EQU sys_epoll_create, 250 @ open an epoll file descriptor
.EQU sys_epoll_ctl, 251 @ control interface for an epoll file desc
.EQU sys_epoll_wait, 252 @ wait for an I/O event on an epoll fd
.EQU sys_remap_file_pages, 253 @ create a nonlinear file mapping
.EQU sys_set_tid_address, 256 @ set pointer to thread ID
.EQU sys_timer_create, 257 @ create a POSIX per-process timer
.EQU sys_timer_settime, 258 @ arm/disarm state of per-process timer
.EQU sys_timer_gettime, 259 @ fetch state of POSIX per-process timer
.EQU sys_timer_getoverrun, 260 @ get overrun count for a per-proc timer
.EQU sys_timer_delete, 261 @ delete a POSIX per-process timer
.EQU sys_clock_settime, 262 @ clock and timer functions
.EQU sys_clock_gettime, 263 @ clock and timer functions
.EQU sys_clock_getres, 264 @ clock and timer functions
.EQU sys_clock_nanosleep, 265 @ high-res sleep with specifiable clock
.EQU sys_statfs64, 266 @ get filesystem statistics
.EQU sys_fstatfs64, 267 @ get filesystem statistics
.EQU sys_tgkill, 268 @ send a signal to a thread
.EQU sys_utimes, 269 @ change file last access and mod times
.EQU sys_arm_fadvise64_64, 270 @ predeclare access pattern for file data
.EQU sys_pciconfig_iobase, 271 @ pci device information handling
.EQU sys_pciconfig_read, 272 @ pci device information handling
.EQU sys_pciconfig_write, 273 @ pci device information handling
.EQU sys_mq_open, 274 @ open a message queue
.EQU sys_mq_unlink, 275 @ remove a message queue
.EQU sys_mq_timedsend, 276 @ send a message to a message queue
.EQU sys_mq_timedreceive, 277 @ receive a message from a message queue
.EQU sys_mq_notify, 278 @ reg for notif when a message is available
.EQU sys_mq_getsetattr, 279 @ get/set message queue attributes
.EQU sys_waitid, 280 @ wait for a child process to change state
.EQU sys_socket, 281 @ create an endpoint for communication
.EQU sys_bind, 282 @ bind a name to a socket
.EQU sys_connect, 283 @ initiate a connection on a socket
.EQU sys_listen, 284 @ listen for connections on a socket
.EQU sys_accept, 285 @ accept a connection on a socket
.EQU sys_getsockname, 286 @ get socket name
.EQU sys_getpeername, 287 @ get name of connected peer socket
.EQU sys_socketpair, 288 @ create a pair of connected sockets
.EQU sys_send, 289 @ send a message on a socket
.EQU sys_sendto, 290 @ send a message on a socket
.EQU sys_recv, 291 @ receive a message from a socket
.EQU sys_recvfrom, 292 @ receive a message from a socket
.EQU sys_shutdown, 293 @ shutdown part of a full-duplex connection
.EQU sys_setsockopt, 294 @ set options on sockets
.EQU sys_getsockopt, 295 @ get options on sockets
.EQU sys_sendmsg, 296 @ send msg on a socket using a msg struct
.EQU sys_recvmsg, 297 @ receive a message from a socket
.EQU sys_semop, 298 @ System V semaphore operations
.EQU sys_semget, 299 @ get a System V semaphore set identifier
.EQU sys_semctl, 300 @ System V semaphore control operations
.EQU sys_msgsnd, 301 @ XSI message send operation
.EQU sys_msgrcv, 302 @ XSI message receive operation
.EQU sys_msgget, 303 @ get a System V message queue identifier
.EQU sys_msgctl, 304 @ System V message control operations
.EQU sys_shmat, 305 @ XSI shared memory attach operation
.EQU sys_shmdt, 306 @ XSI shared memory detach operation
.EQU sys_shmget, 307 @ allocates a System V shared memory seg
.EQU sys_shmctl, 308 @ System V shared memory control
.EQU sys_add_key, 309 @ add key to kernel's key mngment facility
.EQU sys_request_key, 310 @ req key from kernel's key management fac
.EQU sys_keyctl, 311 @ manipulate kernel's key management fac
.EQU sys_semtimedop, 312 @ System V semaphore operations
.EQU sys_vserver, 313 @ Unimplemented
.EQU sys_ioprio_set, 314 @ set I/O scheduling class and priority
.EQU sys_ioprio_get, 315 @ get I/O scheduling class and priority
.EQU sys_inotify_init, 316 @ initialize an inotify instance
.EQU sys_inotify_add_watch, 317 @ add watch to initialized inotify inst
.EQU sys_inotify_rm_watch, 318 @ remove existing watch from inotify inst
.EQU sys_mbind, 319 @ set memory policy for a memory range
.EQU sys_get_mempolicy, 320 @ retrieve NUMA memory policy for a thread
.EQU sys_set_mempolicy, 321 @ set def NUMA memory policy for a thread
.EQU sys_openat, 322 @ open file relative to dir file descriptor
.EQU sys_mkdirat, 323 @ create a directory
.EQU sys_mknodat, 324 @ create a special or ordinary file
.EQU sys_fchownat, 325 @ change owner and grp of a file rel to dir
.EQU sys_futimesat, 326 @ change timestamps of file rel to a dir
.EQU sys_fstatat64, 327 @ get file status
.EQU sys_unlinkat, 328 @ del name and possibly the file it refs to
.EQU sys_renameat, 329 @ change the name or location of a file
.EQU sys_linkat, 330 @ make a new name for a file
.EQU sys_symlinkat, 331 @ make a new name for a file
.EQU sys_readlinkat, 332 @ read value of a symbolic link
.EQU sys_fchmodat, 333 @ change permissions of a file
.EQU sys_faccessat, 334 @ det accessibility of file relative to dir
.EQU sys_pselect6, 335 @ synchronous I/O multiplexing
.EQU sys_ppoll, 336 @ wait for some event on a file descriptor
.EQU sys_unshare, 337 @ run prog with namespace unshared from par
.EQU sys_set_robust_list, 338 @ set list of robust futexes
.EQU sys_get_robust_list, 339 @ get list of robust futexes
.EQU sys_splice, 340 @ splice data to/from a pipe
.EQU sys_arm_sync_file_range, 341 @ sync a file segment with disk
.EQU sys_tee, 342 @ duplicating pipe content
.EQU sys_vmsplice, 343 @ splice user pages to/from a pipe
.EQU sys_move_pages, 344 @ move ind pages of a proc to another node
.EQU sys_getcpu, 345 @ determine CPU and NUMA node
.EQU sys_epoll_pwait, 346 @ wait for I/O event on epoll file desc
.EQU sys_kexec_load, 347 @ load a new kernel for later execution
.EQU sys_utimensat, 348 @ chg file timestamps with nanosecond prec
.EQU sys_signalfd, 349 @ create a file desc for accepting signals
.EQU sys_timerfd_create, 350 @ timers that notify via file descriptors
.EQU sys_eventfd, 351 @ create a file descr for event notif
.EQU sys_fallocate, 352 @ manipulate file space
.EQU sys_timerfd_settime, 353 @ timers that notify via file descriptors
.EQU sys_timerfd_gettime, 354 @ timers that notify via file descriptors
.EQU sys_signalfd4, 355 @ create a file desc for accepting signals
.EQU sys_eventfd2, 356 @ create a file desc for event notification
.EQU sys_epoll_create1, 357 @ open an epoll file descriptor
.EQU sys_dup3, 358 @ duplicate a file descriptor
.EQU sys_pipe2, 359 @ create pipe
.EQU sys_inotify_init1, 360 @ initialize an inotify instance
.EQU sys_preadv, 361 @ read data into multiple buffers
.EQU sys_pwritev, 362 @ write data into multiple buffers
.EQU sys_rt_tgsigqueueinfo, 363 @ queue a signal and data
.EQU sys_perf_event_open, 364 @ set up performance monitoring
.EQU sys_recvmmsg, 365 @ receive multiple messages on a socket
.EQU sys_accept4, 366 @ accept a connection on a socket
.EQU sys_fanotify_init, 367 @ create and initialize fanotify group
.EQU sys_fanotify_mark, 368 @ add, remove, or modify fanotify mark
.EQU sys_prlimit64, 369 @ get/set resource limits
.EQU sys_name_to_handle_at, 370 @ obtain handle for a pathname
.EQU sys_open_by_handle_at, 371 @ open file via a handle
.EQU sys_clock_adjtime, 372 @ tune kernel clock
.EQU sys_syncfs, 373 @ commit filesystem caches to disk
.EQU sys_sendmmsg, 374 @ send multiple messages on a socket
.EQU sys_setns, 375 @ reassociate thread with a namespace
.EQU sys_process_vm_readv, 376 @ trans data betwn process address spaces
.EQU sys_process_vm_writev, 377 @ trans data between proc address spaces
.EQU sys_kcmp, 378 @ comp 2 procs to det if share kern res
.EQU sys_finit_module, 379 @ load a kernel module
.EQU sys_sched_setattr, 380 @ set scheduling policy and attributes
.EQU sys_sched_getattr, 381 @ get scheduling policy and attributes
.EQU sys_renameat2, 382 @ change the name or location of a file
.EQU sys_seccomp, 383 @ operate on Secure Computing state
.EQU sys_getrandom, 384 @ obtain a series of random bytes
.EQU sys_memfd_create, 385 @ create an anonymous file
.EQU sys_bpf, 386 @ perform a command on an extended BPF map
.EQU sys_execveat, 387 @ execute program relative to a dir fd
.EQU sys_userfaultfd, 388 @ create fd for handling page faults
.EQU sys_membarrier, 389 @ issue memory barriers on a set of threads
.EQU sys_mlock2, 390 @ lock memory
.EQU sys_copy_file_range, 391 @ Copy rng of data frm one file to another
.EQU sys_preadv2, 392 @ read data into multiple buffers
.EQU sys_pwritev2, 393 @ write data into multiple buffers
.EQU sys_pkey_mprotect, 394 @ set protection on a region of memory
.EQU sys_pkey_alloc, 395 @ allocate a protection key
.EQU sys_pkey_free, 396 @ free a protection key
.EQU sys_statx, 397 @ get file status (extended)
.EQU sys_rseq, 398 @ restartable sequences
@@ Base address uart3
.EQU uart3_base, 0x01C28C00
@@ Offsets UART
.EQU uart_rbr, 0x00 @ Reciever Register
.EQU uart_thr, 0x00 @ Transmiter Register
.EQU uart_dll, 0x00 @ Divisor Latch Low (8 bits de baixo do divisor da fórmula)
.EQU uart_dlh, 0x04 @ Divisor Latch High (8 bits de cima do disisor da fórmula)
.EQU uart_lcr, 0x0C @ Divisor Latch Access Bit
.EQU uart_lsr, 0x14 @ Line Status Register
@@@ Bits para o LCR da UART
.EQU lcr_dlab, 7 @ 1: permite que seja configurada a baud rate no dll e dlh
.EQU lcr_pen, 3 @ 0: sem paridade, 1: com paridade
.EQU lcr_stop, 2 @ 0: 1 stop bit
.EQU lcr_dls, 0 @ 11: 8 bits em um caractere
@@@ Bits para o LSR da UART (read)
.EQU lsr_thre, 5 @ 1: livre para escrita no thr
.EQU lsr_dr, 0 @ 1: existe um caractere para ser lido no rbr