Logo
Explore Help
Sign In
generic-library/bionic
1
0
Fork 0
You've already forked bionic
Code Issues Pull Requests Releases Wiki Activity
bionic/libc/arch-x86/syscalls/chroot.S

21 lines
382 B
ArmAsm
Raw Normal View History

auto import from //depot/cupcake/@135843
2009-03-03 19:28:35 -08:00
/* autogenerated by gensyscalls.py */
Switch x86 syscall stubs over to the ENTER/END style of the ARM stubs. Also update the x86 asm.h to support this; we need it for libm assembler anyway. Also clean up the _FBSDID hack in <sys/cdefs.h>. Change-Id: Iababd977b8110ec022bf7c93f4d62ece47630e7c
2013-02-06 17:08:15 -08:00
#include <machine/asm.h>
auto import from //depot/cupcake/@135843
2009-03-03 19:28:35 -08:00
#include <sys/linux-syscalls.h>
Switch x86 syscall stubs over to the ENTER/END style of the ARM stubs. Also update the x86 asm.h to support this; we need it for libm assembler anyway. Also clean up the _FBSDID hack in <sys/cdefs.h>. Change-Id: Iababd977b8110ec022bf7c93f4d62ece47630e7c
2013-02-06 17:08:15 -08:00
ENTRY(chroot)
auto import from //depot/cupcake/@135843
2009-03-03 19:28:35 -08:00
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_chroot, %eax
int $0x80
cmpl $-129, %eax
jb 1f
negl %eax
pushl %eax
call __set_errno
addl $4, %esp
orl $-1, %eax
1:
popl %ebx
ret
Switch x86 syscall stubs over to the ENTER/END style of the ARM stubs. Also update the x86 asm.h to support this; we need it for libm assembler anyway. Also clean up the _FBSDID hack in <sys/cdefs.h>. Change-Id: Iababd977b8110ec022bf7c93f4d62ece47630e7c
2013-02-06 17:08:15 -08:00
END(chroot)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 56ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API