Blame sys-elf_i386.S

Packit Service b439df
/*
Packit Service b439df
 * libhugetlbfs - Easy use of Linux hugepages
Packit Service b439df
 * Copyright (C) 2007 David Gibson, IBM Corporation.
Packit Service b439df
 *
Packit Service b439df
 * Based on code from the GNU C Library, Copyright Free Software Foundation, Inc.
Packit Service b439df
 *
Packit Service b439df
 * This library is free software; you can redistribute it and/or
Packit Service b439df
 * modify it under the terms of the GNU Lesser General Public License
Packit Service b439df
 * as published by the Free Software Foundation; either version 2.1 of
Packit Service b439df
 * the License, or (at your option) any later version.
Packit Service b439df
 *
Packit Service b439df
 * This library is distributed in the hope that it will be useful, but
Packit Service b439df
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service b439df
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service b439df
 * Lesser General Public License for more details.
Packit Service b439df
 *
Packit Service b439df
 * You should have received a copy of the GNU Lesser General Public
Packit Service b439df
 * License along with this library; if not, write to the Free Software
Packit Service b439df
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Packit Service b439df
 */
Packit Service b439df
Packit Service b439df
	.text
Packit Service b439df
Packit Service b439df
	.globl	direct_syscall
Packit Service b439df
direct_syscall:
Packit Service b439df
	push	%ebp
Packit Service b439df
	push	%edi
Packit Service b439df
	push	%esi
Packit Service b439df
	push	%ebx
Packit Service b439df
	mov	0x2c(%esp),%ebp
Packit Service b439df
	mov	0x28(%esp),%edi
Packit Service b439df
	mov	0x24(%esp),%esi
Packit Service b439df
	mov	0x20(%esp),%edx
Packit Service b439df
	mov	0x1c(%esp),%ecx
Packit Service b439df
	mov	0x18(%esp),%ebx
Packit Service b439df
	mov	0x14(%esp),%eax
Packit Service b439df
	int	$0x80
Packit Service b439df
	pop	%ebx
Packit Service b439df
	pop	%esi
Packit Service b439df
	pop	%edi
Packit Service b439df
	pop	%ebp
Packit Service b439df
	ret
Packit Service b439df
Packit Service b439df
#if defined(__linux__) && defined(__ELF__)
Packit Service b439df
	.section .note.GNU-stack,"",%progbits
Packit Service b439df
#endif