Blame sys-elf_i386.S

Packit 2d622a
/*
Packit 2d622a
 * libhugetlbfs - Easy use of Linux hugepages
Packit 2d622a
 * Copyright (C) 2007 David Gibson, IBM Corporation.
Packit 2d622a
 *
Packit 2d622a
 * Based on code from the GNU C Library, Copyright Free Software Foundation, Inc.
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
 * as published by the Free Software Foundation; either version 2.1 of
Packit 2d622a
 * the License, or (at your option) any later version.
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
direct_syscall:
Packit 2d622a
	push	%ebp
Packit 2d622a
	push	%edi
Packit 2d622a
	push	%esi
Packit 2d622a
	push	%ebx
Packit 2d622a
	mov	0x2c(%esp),%ebp
Packit 2d622a
	mov	0x28(%esp),%edi
Packit 2d622a
	mov	0x24(%esp),%esi
Packit 2d622a
	mov	0x20(%esp),%edx
Packit 2d622a
	mov	0x1c(%esp),%ecx
Packit 2d622a
	mov	0x18(%esp),%ebx
Packit 2d622a
	mov	0x14(%esp),%eax
Packit 2d622a
	int	$0x80
Packit 2d622a
	pop	%ebx
Packit 2d622a
	pop	%esi
Packit 2d622a
	pop	%edi
Packit 2d622a
	pop	%ebp
Packit 2d622a
	ret
Packit 2d622a
Packit 2d622a
#if defined(__linux__) && defined(__ELF__)
Packit 2d622a
	.section .note.GNU-stack,"",%progbits
Packit 2d622a
#endif