Blame sys-armelf_linux_eabi.S

Packit 2d622a
/*
Packit 2d622a
 * libhugetlbfs - Easy use of Linux hugepages
Packit 2d622a
 * Copyright (C) 2012 ARM Ltd.
Packit 2d622a
 *
Packit 2d622a
 * This library is free software; you can redistribute it and/or
Packit 2d622a
 * modify it under the terms of the GNU Lesser General Public License
Packit 2d622a
 * version 2.1 as published by the Free Software Foundation.
Packit 2d622a
 *
Packit 2d622a
 * This library is distributed in the hope that it will be useful, but
Packit 2d622a
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 2d622a
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 2d622a
 * Lesser General Public License for more details.
Packit 2d622a
 *
Packit 2d622a
 * You should have received a copy of the GNU Lesser General Public
Packit 2d622a
 * License along with this library; if not, write to the Free Software
Packit 2d622a
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Packit 2d622a
 */
Packit 2d622a
Packit 2d622a
        .text
Packit 2d622a
Packit 2d622a
        .globl  direct_syscall
Packit 2d622a
	.type	direct_syscall,%function
Packit 2d622a
direct_syscall:
Packit 2d622a
	mov     ip, sp
Packit 2d622a
	stmfd   sp!, {r4, r5, r6, r7}
Packit 2d622a
	mov     r7, r0
Packit 2d622a
	mov     r0, r1
Packit 2d622a
	mov     r1, r2
Packit 2d622a
	mov     r2, r3
Packit 2d622a
	ldmfd   ip, {r3, r4, r5, r6}
Packit 2d622a
	swi     0x0
Packit 2d622a
	ldmfd   sp!, {r4, r5, r6, r7}
Packit 2d622a
	bx	lr
Packit 2d622a
Packit 2d622a
#if defined(__linux__) && defined(__ELF__)
Packit 2d622a
	.section .note.GNU-stack,"",%progbits
Packit 2d622a
#endif