Debian Codegraph @

sys-aarch64elf.S

raw
1 /*
2 * libhugetlbfs - Easy use of Linux hugepages
3 * Copyright (C) 2013 Linaro Ltd.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * version 2.1 as published by the Free Software Foundation.
8 *
9 * This library is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 .text
20
21 .globl direct_syscall
22
23
24 direct_syscall:
25 uxtw x8, w0
26 mov x0, x1
27 mov x1, x2
28 mov x2, x3
29 mov x3, x4
30 mov x4, x5
31 mov x5, x6
32 mov x6, x7
33 svc 0x0
34 ret
35
36 #if defined(__linux__) && defined(__ELF__)
37 .section .note.GNU-stack,"",%progbits
38 #endif