diff options
author | Elliott Hughes <enh@google.com> | 2013-02-06 17:08:15 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-02-06 17:08:15 -0800 |
commit | 7582a9c119a4e4d0c306996b2513205889a9fb6c (patch) | |
tree | 44c9126902c7477c5f260323a07a775725c22f55 | |
parent | d32fdbaf03f688497adbec885e85c0a69f7a4542 (diff) | |
download | android_bionic-7582a9c119a4e4d0c306996b2513205889a9fb6c.tar.gz android_bionic-7582a9c119a4e4d0c306996b2513205889a9fb6c.tar.bz2 android_bionic-7582a9c119a4e4d0c306996b2513205889a9fb6c.zip |
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
206 files changed, 743 insertions, 1271 deletions
diff --git a/libc/arch-x86/include/machine/asm.h b/libc/arch-x86/include/machine/asm.h index 49d3ea8d1..2e8d298c7 100644 --- a/libc/arch-x86/include/machine/asm.h +++ b/libc/arch-x86/include/machine/asm.h @@ -1,5 +1,4 @@ -/* $OpenBSD: asm.h,v 1.8 2004/06/13 21:49:16 niklas Exp $ */ -/* $NetBSD: asm.h,v 1.7 1994/10/27 04:15:56 cgd Exp $ */ +/* $NetBSD: asm.h,v 1.40 2011/06/16 13:16:20 joerg Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -38,24 +37,17 @@ #ifndef _I386_ASM_H_ #define _I386_ASM_H_ -/* This is borrowed from FreeBSD /src/sys/i386/include/asmacros.h v1.27 */ -/* - * CNAME and HIDENAME manage the relationship between symbol names in C - * and the equivalent assembly language names. CNAME is given a name as - * it would be used in a C program. It expands to the equivalent assembly - * language name. HIDENAME is given an assembly-language name, and expands - * to a possibly-modified form that will be invisible to C programs. - */ -#define CNAME(csym) csym -#define HIDENAME(asmsym) .asmsym +#ifdef _KERNEL_OPT +#include "opt_multiprocessor.h" +#endif #ifdef PIC #define PIC_PROLOGUE \ pushl %ebx; \ - call 666f; \ -666: \ + call 1f; \ +1: \ popl %ebx; \ - addl $_C_LABEL(_GLOBAL_OFFSET_TABLE_)+[.-666b], %ebx + addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ebx #define PIC_EPILOGUE \ popl %ebx #define PIC_PLT(x) x@PLT @@ -69,10 +61,18 @@ #define PIC_GOTOFF(x) x #endif -#define _C_LABEL(name) name +#ifdef __ELF__ +# define _C_LABEL(x) x +#else +# ifdef __STDC__ +# define _C_LABEL(x) _ ## x +# else +# define _C_LABEL(x) _/**/x +# endif +#endif #define _ASM_LABEL(x) x -#define CVAROFF(x, y) _C_LABEL(x) + y +#define CVAROFF(x, y) _C_LABEL(x) + y #ifdef __STDC__ # define __CONCAT(x,y) x ## y @@ -82,53 +82,137 @@ # define __STRING(x) "x" #endif -/* - * WEAK ALIAS: create a weak alias - */ -#define WEAK_ALIAS(alias,sym) \ - .weak alias; \ - alias = sym - -/* - * WARN_REFERENCES: create a warning if the specified symbol is referenced - */ -#define WARN_REFERENCES(_sym,_msg) \ - .section .gnu.warning. ## _sym ; .ascii _msg ; .text - /* let kernels and others override entrypoint alignment */ -#ifndef _ALIGN_TEXT -# define _ALIGN_TEXT .align 2, 0x90 +#if !defined(_ALIGN_TEXT) && !defined(_KERNEL) +# ifdef _STANDALONE +# define _ALIGN_TEXT .align 1 +# elif defined __ELF__ +# define _ALIGN_TEXT .align 16 +# else +# define _ALIGN_TEXT .align 4 +# endif #endif #define _ENTRY(x) \ .text; _ALIGN_TEXT; .globl x; .type x,@function; x: +#define _LABEL(x) \ + .globl x; x: + +#ifdef _KERNEL + +#define CPUVAR(off) %fs:__CONCAT(CPU_INFO_,off) + +/* XXX Can't use __CONCAT() here, as it would be evaluated incorrectly. */ +#ifdef __ELF__ +#ifdef __STDC__ +#define IDTVEC(name) \ + ALIGN_TEXT; .globl X ## name; .type X ## name,@function; X ## name: +#define IDTVEC_END(name) \ + .size X ## name, . - X ## name +#else +#define IDTVEC(name) \ + ALIGN_TEXT; .globl X/**/name; .type X/**/name,@function; X/**/name: +#define IDTVEC_END(name) \ + .size X/**/name, . - X/**/name +#endif /* __STDC__ */ +#else +#ifdef __STDC__ +#define IDTVEC(name) \ + ALIGN_TEXT; .globl _X ## name; .type _X ## name,@function; _X ## name: +#define IDTVEC_END(name) \ + .size _X ## name, . - _X ## name +#else +#define IDTVEC(name) \ + ALIGN_TEXT; .globl _X/**/name; .type _X/**/name,@function; _X/**/name: +#define IDTVEC_END(name) \ + .size _X/**/name, . - _X/**/name +#endif /* __STDC__ */ +#endif /* __ELF__ */ + +#ifdef _STANDALONE +#define ALIGN_DATA .align 4 +#define ALIGN_TEXT .align 4 /* 4-byte boundaries */ +#define SUPERALIGN_TEXT .align 16 /* 15-byte boundaries */ +#elif defined __ELF__ +#define ALIGN_DATA .align 4 +#define ALIGN_TEXT .align 16 /* 16-byte boundaries */ +#define SUPERALIGN_TEXT .align 16 /* 16-byte boundaries */ +#else +#define ALIGN_DATA .align 2 +#define ALIGN_TEXT .align 4 /* 16-byte boundaries */ +#define SUPERALIGN_TEXT .align 4 /* 16-byte boundaries */ +#endif /* __ELF__ */ + +#define _ALIGN_TEXT ALIGN_TEXT + +#ifdef GPROF +#ifdef __ELF__ +#define MCOUNT_ASM call _C_LABEL(__mcount) +#else /* __ELF__ */ +#define MCOUNT_ASM call _C_LABEL(mcount) +#endif /* __ELF__ */ +#else /* GPROF */ +#define MCOUNT_ASM /* nothing */ +#endif /* GPROF */ + +#endif /* _KERNEL */ -#define _ASM_SIZE(x) .size x, .-x; -#define _END(x) \ - .fnend; \ - _ASM_SIZE(x) #ifdef GPROF -# define _PROF_PROLOGUE \ +# ifdef __ELF__ +# define _PROF_PROLOGUE \ + pushl %ebp; movl %esp,%ebp; call PIC_PLT(__mcount); popl %ebp +# else +# define _PROF_PROLOGUE \ pushl %ebp; movl %esp,%ebp; call PIC_PLT(mcount); popl %ebp +# endif #else # define _PROF_PROLOGUE #endif #define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE #define NENTRY(y) _ENTRY(_C_LABEL(y)) -#define END(y) _END(_C_LABEL(y)) #define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE +#define LABEL(y) _LABEL(_C_LABEL(y)) +#define END(y) .size y, . - y -#define ENTRY_PRIVATE(y) ENTRY(y); .hidden _C_LABEL(y) +#define ASMSTR .asciz +#ifdef __ELF__ +#define RCSID(x) .pushsection ".ident"; .asciz x; .popsection +#else +#define RCSID(x) .text; .asciz x +#endif -#define ALTENTRY(name) .globl _C_LABEL(name); _C_LABEL(name): +#ifdef NO_KERNEL_RCSIDS +#define __KERNEL_RCSID(_n, _s) /* nothing */ +#else +#define __KERNEL_RCSID(_n, _s) RCSID(_s) +#endif -#define ASMSTR .asciz +#ifdef __ELF__ +#define WEAK_ALIAS(alias,sym) \ + .weak alias; \ + alias = sym +#endif +/* + * STRONG_ALIAS: create a strong alias. + */ +#define STRONG_ALIAS(alias,sym) \ + .globl alias; \ + alias = sym -#define RCSID(x) .text; .asciz x -#define __FBSDID(x) RCSID(x) +#ifdef __STDC__ +#define WARN_REFERENCES(sym,msg) \ + .pushsection .gnu.warning. ## sym; \ + .ascii msg; \ + .popsection +#else +#define WARN_REFERENCES(sym,msg) \ + .pushsection .gnu.warning./**/sym; \ + .ascii msg; \ + .popsection +#endif /* __STDC__ */ #endif /* !_I386_ASM_H_ */ diff --git a/libc/arch-x86/syscalls/__brk.S b/libc/arch-x86/syscalls/__brk.S index 235cc4faa..f7a81fff4 100644 --- a/libc/arch-x86/syscalls/__brk.S +++ b/libc/arch-x86/syscalls/__brk.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __brk, @function - .globl __brk - .align 4 - -__brk: +ENTRY(__brk) pushl %ebx mov 8(%esp), %ebx movl $__NR_brk, %eax @@ -21,3 +17,4 @@ __brk: 1: popl %ebx ret +END(__brk) diff --git a/libc/arch-x86/syscalls/__fcntl.S b/libc/arch-x86/syscalls/__fcntl.S index 377f08ead..9f74d8669 100644 --- a/libc/arch-x86/syscalls/__fcntl.S +++ b/libc/arch-x86/syscalls/__fcntl.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __fcntl, @function - .globl __fcntl - .align 4 - -__fcntl: +ENTRY(__fcntl) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __fcntl: popl %ecx popl %ebx ret +END(__fcntl) diff --git a/libc/arch-x86/syscalls/__fcntl64.S b/libc/arch-x86/syscalls/__fcntl64.S index 2ed47fea9..c59f4902e 100644 --- a/libc/arch-x86/syscalls/__fcntl64.S +++ b/libc/arch-x86/syscalls/__fcntl64.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __fcntl64, @function - .globl __fcntl64 - .align 4 - -__fcntl64: +ENTRY(__fcntl64) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __fcntl64: popl %ecx popl %ebx ret +END(__fcntl64) diff --git a/libc/arch-x86/syscalls/__fork.S b/libc/arch-x86/syscalls/__fork.S index 4b5d1c6f4..557714d16 100644 --- a/libc/arch-x86/syscalls/__fork.S +++ b/libc/arch-x86/syscalls/__fork.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __fork, @function - .globl __fork - .align 4 - -__fork: +ENTRY(__fork) pushl %ebx mov 8(%esp), %ebx movl $__NR_fork, %eax @@ -21,3 +17,4 @@ __fork: 1: popl %ebx ret +END(__fork) diff --git a/libc/arch-x86/syscalls/__fstatfs64.S b/libc/arch-x86/syscalls/__fstatfs64.S index f7552444d..9943362c8 100644 --- a/libc/arch-x86/syscalls/__fstatfs64.S +++ b/libc/arch-x86/syscalls/__fstatfs64.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __fstatfs64, @function - .globl __fstatfs64 - .align 4 - -__fstatfs64: +ENTRY(__fstatfs64) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __fstatfs64: popl %ecx popl %ebx ret +END(__fstatfs64) diff --git a/libc/arch-x86/syscalls/__getcpu.S b/libc/arch-x86/syscalls/__getcpu.S index 03817997e..152f5c88e 100644 --- a/libc/arch-x86/syscalls/__getcpu.S +++ b/libc/arch-x86/syscalls/__getcpu.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __getcpu, @function - .globl __getcpu - .align 4 - -__getcpu: +ENTRY(__getcpu) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __getcpu: popl %ecx popl %ebx ret +END(__getcpu) diff --git a/libc/arch-x86/syscalls/__getcwd.S b/libc/arch-x86/syscalls/__getcwd.S index f2bd520f5..2e30d9b4f 100644 --- a/libc/arch-x86/syscalls/__getcwd.S +++ b/libc/arch-x86/syscalls/__getcwd.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __getcwd, @function - .globl __getcwd - .align 4 - -__getcwd: +ENTRY(__getcwd) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ __getcwd: popl %ecx popl %ebx ret +END(__getcwd) diff --git a/libc/arch-x86/syscalls/__getpriority.S b/libc/arch-x86/syscalls/__getpriority.S index 08503d854..a01512793 100644 --- a/libc/arch-x86/syscalls/__getpriority.S +++ b/libc/arch-x86/syscalls/__getpriority.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __getpriority, @function - .globl __getpriority - .align 4 - -__getpriority: +ENTRY(__getpriority) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ __getpriority: popl %ecx popl %ebx ret +END(__getpriority) diff --git a/libc/arch-x86/syscalls/__ioctl.S b/libc/arch-x86/syscalls/__ioctl.S index cdde9abdd..db85a196b 100644 --- a/libc/arch-x86/syscalls/__ioctl.S +++ b/libc/arch-x86/syscalls/__ioctl.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __ioctl, @function - .globl __ioctl - .align 4 - -__ioctl: +ENTRY(__ioctl) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __ioctl: popl %ecx popl %ebx ret +END(__ioctl) diff --git a/libc/arch-x86/syscalls/__llseek.S b/libc/arch-x86/syscalls/__llseek.S index df49a946f..7811f6ba4 100644 --- a/libc/arch-x86/syscalls/__llseek.S +++ b/libc/arch-x86/syscalls/__llseek.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __llseek, @function - .globl __llseek - .align 4 - -__llseek: +ENTRY(__llseek) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ __llseek: popl %ecx popl %ebx ret +END(__llseek) diff --git a/libc/arch-x86/syscalls/__mmap2.S b/libc/arch-x86/syscalls/__mmap2.S index fea571f7e..535a891ee 100644 --- a/libc/arch-x86/syscalls/__mmap2.S +++ b/libc/arch-x86/syscalls/__mmap2.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __mmap2, @function - .globl __mmap2 - .align 4 - -__mmap2: +ENTRY(__mmap2) pushl %ebx pushl %ecx pushl %edx @@ -36,3 +32,4 @@ __mmap2: popl %ecx popl %ebx ret +END(__mmap2) diff --git a/libc/arch-x86/syscalls/__open.S b/libc/arch-x86/syscalls/__open.S index df6fd9352..b87823113 100644 --- a/libc/arch-x86/syscalls/__open.S +++ b/libc/arch-x86/syscalls/__open.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __open, @function - .globl __open - .align 4 - -__open: +ENTRY(__open) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __open: popl %ecx popl %ebx ret +END(__open) diff --git a/libc/arch-x86/syscalls/__openat.S b/libc/arch-x86/syscalls/__openat.S index aa1492791..faf8013d9 100644 --- a/libc/arch-x86/syscalls/__openat.S +++ b/libc/arch-x86/syscalls/__openat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __openat, @function - .globl __openat - .align 4 - -__openat: +ENTRY(__openat) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ __openat: popl %ecx popl %ebx ret +END(__openat) diff --git a/libc/arch-x86/syscalls/__ptrace.S b/libc/arch-x86/syscalls/__ptrace.S index bec952b6b..f574cf0d8 100644 --- a/libc/arch-x86/syscalls/__ptrace.S +++ b/libc/arch-x86/syscalls/__ptrace.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __ptrace, @function - .globl __ptrace - .align 4 - -__ptrace: +ENTRY(__ptrace) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ __ptrace: popl %ecx popl %ebx ret +END(__ptrace) diff --git a/libc/arch-x86/syscalls/__reboot.S b/libc/arch-x86/syscalls/__reboot.S index 6cb74e202..626a95576 100644 --- a/libc/arch-x86/syscalls/__reboot.S +++ b/libc/arch-x86/syscalls/__reboot.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __reboot, @function - .globl __reboot - .align 4 - -__reboot: +ENTRY(__reboot) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ __reboot: popl %ecx popl %ebx ret +END(__reboot) diff --git a/libc/arch-x86/syscalls/__rt_sigaction.S b/libc/arch-x86/syscalls/__rt_sigaction.S index c57f58064..ef9893b47 100644 --- a/libc/arch-x86/syscalls/__rt_sigaction.S +++ b/libc/arch-x86/syscalls/__rt_sigaction.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __rt_sigaction, @function - .globl __rt_sigaction - .align 4 - -__rt_sigaction: +ENTRY(__rt_sigaction) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ __rt_sigaction: popl %ecx popl %ebx ret +END(__rt_sigaction) diff --git a/libc/arch-x86/syscalls/__rt_sigprocmask.S b/libc/arch-x86/syscalls/__rt_sigprocmask.S index 623331b14..930c9b27a 100644 --- a/libc/arch-x86/syscalls/__rt_sigprocmask.S +++ b/libc/arch-x86/syscalls/__rt_sigprocmask.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __rt_sigprocmask, @function - .globl __rt_sigprocmask - .align 4 - -__rt_sigprocmask: +ENTRY(__rt_sigprocmask) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ __rt_sigprocmask: popl %ecx popl %ebx ret +END(__rt_sigprocmask) diff --git a/libc/arch-x86/syscalls/__rt_sigtimedwait.S b/libc/arch-x86/syscalls/__rt_sigtimedwait.S index 8e14a894d..ba867f57f 100644 --- a/libc/arch-x86/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-x86/syscalls/__rt_sigtimedwait.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __rt_sigtimedwait, @function - .globl __rt_sigtimedwait - .align 4 - -__rt_sigtimedwait: +ENTRY(__rt_sigtimedwait) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ __rt_sigtimedwait: popl %ecx popl %ebx ret +END(__rt_sigtimedwait) diff --git a/libc/arch-x86/syscalls/__sched_getaffinity.S b/libc/arch-x86/syscalls/__sched_getaffinity.S index 43bfa508b..2a40b6513 100644 --- a/libc/arch-x86/syscalls/__sched_getaffinity.S +++ b/libc/arch-x86/syscalls/__sched_getaffinity.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __sched_getaffinity, @function - .globl __sched_getaffinity - .align 4 - -__sched_getaffinity: +ENTRY(__sched_getaffinity) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __sched_getaffinity: popl %ecx popl %ebx ret +END(__sched_getaffinity) diff --git a/libc/arch-x86/syscalls/__set_thread_area.S b/libc/arch-x86/syscalls/__set_thread_area.S index cd2204023..dc4a561b9 100644 --- a/libc/arch-x86/syscalls/__set_thread_area.S +++ b/libc/arch-x86/syscalls/__set_thread_area.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __set_thread_area, @function - .globl __set_thread_area - .align 4 - -__set_thread_area: +ENTRY(__set_thread_area) pushl %ebx mov 8(%esp), %ebx movl $__NR_set_thread_area, %eax @@ -21,3 +17,4 @@ __set_thread_area: 1: popl %ebx ret +END(__set_thread_area) diff --git a/libc/arch-x86/syscalls/__setresuid.S b/libc/arch-x86/syscalls/__setresuid.S index c492dfb5d..c604984b1 100644 --- a/libc/arch-x86/syscalls/__setresuid.S +++ b/libc/arch-x86/syscalls/__setresuid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __setresuid, @function - .globl __setresuid - .align 4 - -__setresuid: +ENTRY(__setresuid) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __setresuid: popl %ecx popl %ebx ret +END(__setresuid) diff --git a/libc/arch-x86/syscalls/__setreuid.S b/libc/arch-x86/syscalls/__setreuid.S index 111e999af..581873976 100644 --- a/libc/arch-x86/syscalls/__setreuid.S +++ b/libc/arch-x86/syscalls/__setreuid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __setreuid, @function - .globl __setreuid - .align 4 - -__setreuid: +ENTRY(__setreuid) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ __setreuid: popl %ecx popl %ebx ret +END(__setreuid) diff --git a/libc/arch-x86/syscalls/__setuid.S b/libc/arch-x86/syscalls/__setuid.S index 1e5f28572..df578b86c 100644 --- a/libc/arch-x86/syscalls/__setuid.S +++ b/libc/arch-x86/syscalls/__setuid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __setuid, @function - .globl __setuid - .align 4 - -__setuid: +ENTRY(__setuid) pushl %ebx mov 8(%esp), %ebx movl $__NR_setuid32, %eax @@ -21,3 +17,4 @@ __setuid: 1: popl %ebx ret +END(__setuid) diff --git a/libc/arch-x86/syscalls/__sigsuspend.S b/libc/arch-x86/syscalls/__sigsuspend.S index 64de756fd..b09f8727c 100644 --- a/libc/arch-x86/syscalls/__sigsuspend.S +++ b/libc/arch-x86/syscalls/__sigsuspend.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __sigsuspend, @function - .globl __sigsuspend - .align 4 - -__sigsuspend: +ENTRY(__sigsuspend) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __sigsuspend: popl %ecx popl %ebx ret +END(__sigsuspend) diff --git a/libc/arch-x86/syscalls/__statfs64.S b/libc/arch-x86/syscalls/__statfs64.S index a0685b72a..4f46bd7b1 100644 --- a/libc/arch-x86/syscalls/__statfs64.S +++ b/libc/arch-x86/syscalls/__statfs64.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __statfs64, @function - .globl __statfs64 - .align 4 - -__statfs64: +ENTRY(__statfs64) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __statfs64: popl %ecx popl %ebx ret +END(__statfs64) diff --git a/libc/arch-x86/syscalls/__sys_clone.S b/libc/arch-x86/syscalls/__sys_clone.S index 172d6af89..a5ce1706e 100644 --- a/libc/arch-x86/syscalls/__sys_clone.S +++ b/libc/arch-x86/syscalls/__sys_clone.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __sys_clone, @function - .globl __sys_clone - .align 4 - -__sys_clone: +ENTRY(__sys_clone) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ __sys_clone: popl %ecx popl %ebx ret +END(__sys_clone) diff --git a/libc/arch-x86/syscalls/__syslog.S b/libc/arch-x86/syscalls/__syslog.S index 3982db407..9d3677985 100644 --- a/libc/arch-x86/syscalls/__syslog.S +++ b/libc/arch-x86/syscalls/__syslog.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __syslog, @function - .globl __syslog - .align 4 - -__syslog: +ENTRY(__syslog) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __syslog: popl %ecx popl %ebx ret +END(__syslog) diff --git a/libc/arch-x86/syscalls/__timer_create.S b/libc/arch-x86/syscalls/__timer_create.S index 66b0cea0c..b319f1b7e 100644 --- a/libc/arch-x86/syscalls/__timer_create.S +++ b/libc/arch-x86/syscalls/__timer_create.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __timer_create, @function - .globl __timer_create - .align 4 - -__timer_create: +ENTRY(__timer_create) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ __timer_create: popl %ecx popl %ebx ret +END(__timer_create) diff --git a/libc/arch-x86/syscalls/__timer_delete.S b/libc/arch-x86/syscalls/__timer_delete.S index 4344d08af..7fb5930f7 100644 --- a/libc/arch-x86/syscalls/__timer_delete.S +++ b/libc/arch-x86/syscalls/__timer_delete.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __timer_delete, @function - .globl __timer_delete - .align 4 - -__timer_delete: +ENTRY(__timer_delete) pushl %ebx mov 8(%esp), %ebx movl $__NR_timer_delete, %eax @@ -21,3 +17,4 @@ __timer_delete: 1: popl %ebx ret +END(__timer_delete) diff --git a/libc/arch-x86/syscalls/__timer_getoverrun.S b/libc/arch-x86/syscalls/__timer_getoverrun.S index 43714156b..477a3d8d2 100644 --- a/libc/arch-x86/syscalls/__timer_getoverrun.S +++ b/libc/arch-x86/syscalls/__timer_getoverrun.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __timer_getoverrun, @function - .globl __timer_getoverrun - .align 4 - -__timer_getoverrun: +ENTRY(__timer_getoverrun) pushl %ebx mov 8(%esp), %ebx movl $__NR_timer_getoverrun, %eax @@ -21,3 +17,4 @@ __timer_getoverrun: 1: popl %ebx ret +END(__timer_getoverrun) diff --git a/libc/arch-x86/syscalls/__timer_gettime.S b/libc/arch-x86/syscalls/__timer_gettime.S index 3923b0ad8..ee5604df7 100644 --- a/libc/arch-x86/syscalls/__timer_gettime.S +++ b/libc/arch-x86/syscalls/__timer_gettime.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __timer_gettime, @function - .globl __timer_gettime - .align 4 - -__timer_gettime: +ENTRY(__timer_gettime) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ __timer_gettime: popl %ecx popl %ebx ret +END(__timer_gettime) diff --git a/libc/arch-x86/syscalls/__timer_settime.S b/libc/arch-x86/syscalls/__timer_settime.S index cabb7df7c..9758f6153 100644 --- a/libc/arch-x86/syscalls/__timer_settime.S +++ b/libc/arch-x86/syscalls/__timer_settime.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __timer_settime, @function - .globl __timer_settime - .align 4 - -__timer_settime: +ENTRY(__timer_settime) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ __timer_settime: popl %ecx popl %ebx ret +END(__timer_settime) diff --git a/libc/arch-x86/syscalls/__wait4.S b/libc/arch-x86/syscalls/__wait4.S index 75ffb95ce..23165a39b 100644 --- a/libc/arch-x86/syscalls/__wait4.S +++ b/libc/arch-x86/syscalls/__wait4.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __wait4, @function - .globl __wait4 - .align 4 - -__wait4: +ENTRY(__wait4) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ __wait4: popl %ecx popl %ebx ret +END(__wait4) diff --git a/libc/arch-x86/syscalls/__waitid.S b/libc/arch-x86/syscalls/__waitid.S index 4dd8c11b5..12f1ac878 100644 --- a/libc/arch-x86/syscalls/__waitid.S +++ b/libc/arch-x86/syscalls/__waitid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type __waitid, @function - .globl __waitid - .align 4 - -__waitid: +ENTRY(__waitid) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ __waitid: popl %ecx popl %ebx ret +END(__waitid) diff --git a/libc/arch-x86/syscalls/_exit.S b/libc/arch-x86/syscalls/_exit.S index 21aa49f5e..e17f925d6 100644 --- a/libc/arch-x86/syscalls/_exit.S +++ b/libc/arch-x86/syscalls/_exit.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type _exit, @function - .globl _exit - .align 4 - -_exit: +ENTRY(_exit) pushl %ebx mov 8(%esp), %ebx movl $__NR_exit_group, %eax @@ -21,3 +17,4 @@ _exit: 1: popl %ebx ret +END(_exit) diff --git a/libc/arch-x86/syscalls/_exit_thread.S b/libc/arch-x86/syscalls/_exit_thread.S index 16aaa5be4..a371350a3 100644 --- a/libc/arch-x86/syscalls/_exit_thread.S +++ b/libc/arch-x86/syscalls/_exit_thread.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type _exit_thread, @function - .globl _exit_thread - .align 4 - -_exit_thread: +ENTRY(_exit_thread) pushl %ebx mov 8(%esp), %ebx movl $__NR_exit, %eax @@ -21,3 +17,4 @@ _exit_thread: 1: popl %ebx ret +END(_exit_thread) diff --git a/libc/arch-x86/syscalls/_waitpid.S b/libc/arch-x86/syscalls/_waitpid.S index 7e76496cf..59bf20e59 100644 --- a/libc/arch-x86/syscalls/_waitpid.S +++ b/libc/arch-x86/syscalls/_waitpid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type _waitpid, @function - .globl _waitpid - .align 4 - -_waitpid: +ENTRY(_waitpid) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ _waitpid: popl %ecx popl %ebx ret +END(_waitpid) diff --git a/libc/arch-x86/syscalls/accept.S b/libc/arch-x86/syscalls/accept.S index ccd56e747..f5fcb5d22 100644 --- a/libc/arch-x86/syscalls/accept.S +++ b/libc/arch-x86/syscalls/accept.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type accept, @function - .globl accept - .align 4 - -accept: +ENTRY(accept) pushl %ebx pushl %ecx mov $5, %ebx @@ -25,3 +21,4 @@ accept: popl %ecx popl %ebx ret +END(accept) diff --git a/libc/arch-x86/syscalls/access.S b/libc/arch-x86/syscalls/access.S index fff26a9a2..0f68574d3 100644 --- a/libc/arch-x86/syscalls/access.S +++ b/libc/arch-x86/syscalls/access.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type access, @function - .globl access - .align 4 - -access: +ENTRY(access) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ access: popl %ecx popl %ebx ret +END(access) diff --git a/libc/arch-x86/syscalls/acct.S b/libc/arch-x86/syscalls/acct.S index 711b6fc8b..bf991d62b 100644 --- a/libc/arch-x86/syscalls/acct.S +++ b/libc/arch-x86/syscalls/acct.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type acct, @function - .globl acct - .align 4 - -acct: +ENTRY(acct) pushl %ebx mov 8(%esp), %ebx movl $__NR_acct, %eax @@ -21,3 +17,4 @@ acct: 1: popl %ebx ret +END(acct) diff --git a/libc/arch-x86/syscalls/bind.S b/libc/arch-x86/syscalls/bind.S index 2172cfbc7..ff6ae9f0d 100644 --- a/libc/arch-x86/syscalls/bind.S +++ b/libc/arch-x86/syscalls/bind.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type bind, @function - .globl bind - .align 4 - -bind: +ENTRY(bind) pushl %ebx pushl %ecx mov $2, %ebx @@ -25,3 +21,4 @@ bind: popl %ecx popl %ebx ret +END(bind) diff --git a/libc/arch-x86/syscalls/capget.S b/libc/arch-x86/syscalls/capget.S index e287cb24b..55960f170 100644 --- a/libc/arch-x86/syscalls/capget.S +++ b/libc/arch-x86/syscalls/capget.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type capget, @function - .globl capget - .align 4 - -capget: +ENTRY(capget) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ capget: popl %ecx popl %ebx ret +END(capget) diff --git a/libc/arch-x86/syscalls/capset.S b/libc/arch-x86/syscalls/capset.S index ce71f6e7c..c8703c76a 100644 --- a/libc/arch-x86/syscalls/capset.S +++ b/libc/arch-x86/syscalls/capset.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type capset, @function - .globl capset - .align 4 - -capset: +ENTRY(capset) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ capset: popl %ecx popl %ebx ret +END(capset) diff --git a/libc/arch-x86/syscalls/chdir.S b/libc/arch-x86/syscalls/chdir.S index be8884707..d40d099f3 100644 --- a/libc/arch-x86/syscalls/chdir.S +++ b/libc/arch-x86/syscalls/chdir.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type chdir, @function - .globl chdir - .align 4 - -chdir: +ENTRY(chdir) pushl %ebx mov 8(%esp), %ebx movl $__NR_chdir, %eax @@ -21,3 +17,4 @@ chdir: 1: popl %ebx ret +END(chdir) diff --git a/libc/arch-x86/syscalls/chmod.S b/libc/arch-x86/syscalls/chmod.S index d023a7d6b..307e19627 100644 --- a/libc/arch-x86/syscalls/chmod.S +++ b/libc/arch-x86/syscalls/chmod.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type chmod, @function - .globl chmod - .align 4 - -chmod: +ENTRY(chmod) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ chmod: popl %ecx popl %ebx ret +END(chmod) diff --git a/libc/arch-x86/syscalls/chown.S b/libc/arch-x86/syscalls/chown.S index 5646088e9..800bf0441 100644 --- a/libc/arch-x86/syscalls/chown.S +++ b/libc/arch-x86/syscalls/chown.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type chown, @function - .globl chown - .align 4 - -chown: +ENTRY(chown) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ chown: popl %ecx popl %ebx ret +END(chown) diff --git a/libc/arch-x86/syscalls/chroot.S b/libc/arch-x86/syscalls/chroot.S index 461087cd2..24d2d109c 100644 --- a/libc/arch-x86/syscalls/chroot.S +++ b/libc/arch-x86/syscalls/chroot.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type chroot, @function - .globl chroot - .align 4 - -chroot: +ENTRY(chroot) pushl %ebx mov 8(%esp), %ebx movl $__NR_chroot, %eax @@ -21,3 +17,4 @@ chroot: 1: popl %ebx ret +END(chroot) diff --git a/libc/arch-x86/syscalls/clock_getres.S b/libc/arch-x86/syscalls/clock_getres.S index 07742aebb..da332aa34 100644 --- a/libc/arch-x86/syscalls/clock_getres.S +++ b/libc/arch-x86/syscalls/clock_getres.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type clock_getres, @function - .globl clock_getres - .align 4 - -clock_getres: +ENTRY(clock_getres) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ clock_getres: popl %ecx popl %ebx ret +END(clock_getres) diff --git a/libc/arch-x86/syscalls/clock_gettime.S b/libc/arch-x86/syscalls/clock_gettime.S index bfe14a475..41ac5e219 100644 --- a/libc/arch-x86/syscalls/clock_gettime.S +++ b/libc/arch-x86/syscalls/clock_gettime.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type clock_gettime, @function - .globl clock_gettime - .align 4 - -clock_gettime: +ENTRY(clock_gettime) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ clock_gettime: popl %ecx popl %ebx ret +END(clock_gettime) diff --git a/libc/arch-x86/syscalls/clock_nanosleep.S b/libc/arch-x86/syscalls/clock_nanosleep.S index 23e1e6f04..cd163dfe1 100644 --- a/libc/arch-x86/syscalls/clock_nanosleep.S +++ b/libc/arch-x86/syscalls/clock_nanosleep.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type clock_nanosleep, @function - .globl clock_nanosleep - .align 4 - -clock_nanosleep: +ENTRY(clock_nanosleep) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ clock_nanosleep: popl %ecx popl %ebx ret +END(clock_nanosleep) diff --git a/libc/arch-x86/syscalls/clock_settime.S b/libc/arch-x86/syscalls/clock_settime.S index 58495ba5a..18237c4c7 100644 --- a/libc/arch-x86/syscalls/clock_settime.S +++ b/libc/arch-x86/syscalls/clock_settime.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type clock_settime, @function - .globl clock_settime - .align 4 - -clock_settime: +ENTRY(clock_settime) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ clock_settime: popl %ecx popl %ebx ret +END(clock_settime) diff --git a/libc/arch-x86/syscalls/close.S b/libc/arch-x86/syscalls/close.S index 1944a83c5..76175c79e 100644 --- a/libc/arch-x86/syscalls/close.S +++ b/libc/arch-x86/syscalls/close.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type close, @function - .globl close - .align 4 - -close: +ENTRY(close) pushl %ebx mov 8(%esp), %ebx movl $__NR_close, %eax @@ -21,3 +17,4 @@ close: 1: popl %ebx ret +END(close) diff --git a/libc/arch-x86/syscalls/connect.S b/libc/arch-x86/syscalls/connect.S index 8b8ce4ee7..e87b12377 100644 --- a/libc/arch-x86/syscalls/connect.S +++ b/libc/arch-x86/syscalls/connect.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type connect, @function - .globl connect - .align 4 - -connect: +ENTRY(connect) pushl %ebx pushl %ecx mov $3, %ebx @@ -25,3 +21,4 @@ connect: popl %ecx popl %ebx ret +END(connect) diff --git a/libc/arch-x86/syscalls/delete_module.S b/libc/arch-x86/syscalls/delete_module.S index 6865d6a71..10a06a38a 100644 --- a/libc/arch-x86/syscalls/delete_module.S +++ b/libc/arch-x86/syscalls/delete_module.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type delete_module, @function - .globl delete_module - .align 4 - -delete_module: +ENTRY(delete_module) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ delete_module: popl %ecx popl %ebx ret +END(delete_module) diff --git a/libc/arch-x86/syscalls/dup.S b/libc/arch-x86/syscalls/dup.S index 155de79f5..80259fe81 100644 --- a/libc/arch-x86/syscalls/dup.S +++ b/libc/arch-x86/syscalls/dup.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type dup, @function - .globl dup - .align 4 - -dup: +ENTRY(dup) pushl %ebx mov 8(%esp), %ebx movl $__NR_dup, %eax @@ -21,3 +17,4 @@ dup: 1: popl %ebx ret +END(dup) diff --git a/libc/arch-x86/syscalls/dup2.S b/libc/arch-x86/syscalls/dup2.S index 59f8329f2..43def66d2 100644 --- a/libc/arch-x86/syscalls/dup2.S +++ b/libc/arch-x86/syscalls/dup2.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type dup2, @function - .globl dup2 - .align 4 - -dup2: +ENTRY(dup2) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ dup2: popl %ecx popl %ebx ret +END(dup2) diff --git a/libc/arch-x86/syscalls/epoll_create.S b/libc/arch-x86/syscalls/epoll_create.S index 8106c5845..0bdc8857a 100644 --- a/libc/arch-x86/syscalls/epoll_create.S +++ b/libc/arch-x86/syscalls/epoll_create.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type epoll_create, @function - .globl epoll_create - .align 4 - -epoll_create: +ENTRY(epoll_create) pushl %ebx mov 8(%esp), %ebx movl $__NR_epoll_create, %eax @@ -21,3 +17,4 @@ epoll_create: 1: popl %ebx ret +END(epoll_create) diff --git a/libc/arch-x86/syscalls/epoll_ctl.S b/libc/arch-x86/syscalls/epoll_ctl.S index ff2c112ba..43175d2ee 100644 --- a/libc/arch-x86/syscalls/epoll_ctl.S +++ b/libc/arch-x86/syscalls/epoll_ctl.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type epoll_ctl, @function - .globl epoll_ctl - .align 4 - -epoll_ctl: +ENTRY(epoll_ctl) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ epoll_ctl: popl %ecx popl %ebx ret +END(epoll_ctl) diff --git a/libc/arch-x86/syscalls/epoll_wait.S b/libc/arch-x86/syscalls/epoll_wait.S index 3d81a1419..e2d61c05c 100644 --- a/libc/arch-x86/syscalls/epoll_wait.S +++ b/libc/arch-x86/syscalls/epoll_wait.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type epoll_wait, @function - .globl epoll_wait - .align 4 - -epoll_wait: +ENTRY(epoll_wait) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ epoll_wait: popl %ecx popl %ebx ret +END(epoll_wait) diff --git a/libc/arch-x86/syscalls/eventfd.S b/libc/arch-x86/syscalls/eventfd.S index 104c842a5..338696f5a 100644 --- a/libc/arch-x86/syscalls/eventfd.S +++ b/libc/arch-x86/syscalls/eventfd.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type eventfd, @function - .globl eventfd - .align 4 - -eventfd: +ENTRY(eventfd) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ eventfd: popl %ecx popl %ebx ret +END(eventfd) diff --git a/libc/arch-x86/syscalls/execve.S b/libc/arch-x86/syscalls/execve.S index 0ab1d7552..c7e3ca5fa 100644 --- a/libc/arch-x86/syscalls/execve.S +++ b/libc/arch-x86/syscalls/execve.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type execve, @function - .globl execve - .align 4 - -execve: +ENTRY(execve) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ execve: popl %ecx popl %ebx ret +END(execve) diff --git a/libc/arch-x86/syscalls/faccessat.S b/libc/arch-x86/syscalls/faccessat.S index 2010e576a..673302944 100644 --- a/libc/arch-x86/syscalls/faccessat.S +++ b/libc/arch-x86/syscalls/faccessat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type faccessat, @function - .globl faccessat - .align 4 - -faccessat: +ENTRY(faccessat) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ faccessat: popl %ecx popl %ebx ret +END(faccessat) diff --git a/libc/arch-x86/syscalls/fchdir.S b/libc/arch-x86/syscalls/fchdir.S index 4e681be19..23aa6e23a 100644 --- a/libc/arch-x86/syscalls/fchdir.S +++ b/libc/arch-x86/syscalls/fchdir.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fchdir, @function - .globl fchdir - .align 4 - -fchdir: +ENTRY(fchdir) pushl %ebx mov 8(%esp), %ebx movl $__NR_fchdir, %eax @@ -21,3 +17,4 @@ fchdir: 1: popl %ebx ret +END(fchdir) diff --git a/libc/arch-x86/syscalls/fchmod.S b/libc/arch-x86/syscalls/fchmod.S index 58f8a9485..019eb07cd 100644 --- a/libc/arch-x86/syscalls/fchmod.S +++ b/libc/arch-x86/syscalls/fchmod.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fchmod, @function - .globl fchmod - .align 4 - -fchmod: +ENTRY(fchmod) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ fchmod: popl %ecx popl %ebx ret +END(fchmod) diff --git a/libc/arch-x86/syscalls/fchmodat.S b/libc/arch-x86/syscalls/fchmodat.S index b5b9c6d25..f7292f9be 100644 --- a/libc/arch-x86/syscalls/fchmodat.S +++ b/libc/arch-x86/syscalls/fchmodat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fchmodat, @function - .globl fchmodat - .align 4 - -fchmodat: +ENTRY(fchmodat) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ fchmodat: popl %ecx popl %ebx ret +END(fchmodat) diff --git a/libc/arch-x86/syscalls/fchown.S b/libc/arch-x86/syscalls/fchown.S index c648d7fd1..f17c0d6a0 100644 --- a/libc/arch-x86/syscalls/fchown.S +++ b/libc/arch-x86/syscalls/fchown.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fchown, @function - .globl fchown - .align 4 - -fchown: +ENTRY(fchown) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ fchown: popl %ecx popl %ebx ret +END(fchown) diff --git a/libc/arch-x86/syscalls/fchownat.S b/libc/arch-x86/syscalls/fchownat.S index 3bec84326..7648d7940 100644 --- a/libc/arch-x86/syscalls/fchownat.S +++ b/libc/arch-x86/syscalls/fchownat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fchownat, @function - .globl fchownat - .align 4 - -fchownat: +ENTRY(fchownat) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ fchownat: popl %ecx popl %ebx ret +END(fchownat) diff --git a/libc/arch-x86/syscalls/fdatasync.S b/libc/arch-x86/syscalls/fdatasync.S index b86c0f807..2808e0fee 100644 --- a/libc/arch-x86/syscalls/fdatasync.S +++ b/libc/arch-x86/syscalls/fdatasync.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fdatasync, @function - .globl fdatasync - .align 4 - -fdatasync: +ENTRY(fdatasync) pushl %ebx mov 8(%esp), %ebx movl $__NR_fdatasync, %eax @@ -21,3 +17,4 @@ fdatasync: 1: popl %ebx ret +END(fdatasync) diff --git a/libc/arch-x86/syscalls/fgetxattr.S b/libc/arch-x86/syscalls/fgetxattr.S index d9f582f82..beaab097b 100644 --- a/libc/arch-x86/syscalls/fgetxattr.S +++ b/libc/arch-x86/syscalls/fgetxattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fgetxattr, @function - .globl fgetxattr - .align 4 - -fgetxattr: +ENTRY(fgetxattr) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ fgetxattr: popl %ecx popl %ebx ret +END(fgetxattr) diff --git a/libc/arch-x86/syscalls/flistxattr.S b/libc/arch-x86/syscalls/flistxattr.S index 43ff73d4a..95935c0f2 100644 --- a/libc/arch-x86/syscalls/flistxattr.S +++ b/libc/arch-x86/syscalls/flistxattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type flistxattr, @function - .globl flistxattr - .align 4 - -flistxattr: +ENTRY(flistxattr) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ flistxattr: popl %ecx popl %ebx ret +END(flistxattr) diff --git a/libc/arch-x86/syscalls/flock.S b/libc/arch-x86/syscalls/flock.S index 1ca09a526..156844c00 100644 --- a/libc/arch-x86/syscalls/flock.S +++ b/libc/arch-x86/syscalls/flock.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type flock, @function - .globl flock - .align 4 - -flock: +ENTRY(flock) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ flock: popl %ecx popl %ebx ret +END(flock) diff --git a/libc/arch-x86/syscalls/fremovexattr.S b/libc/arch-x86/syscalls/fremovexattr.S index eeed57f29..32d0bdc47 100644 --- a/libc/arch-x86/syscalls/fremovexattr.S +++ b/libc/arch-x86/syscalls/fremovexattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fremovexattr, @function - .globl fremovexattr - .align 4 - -fremovexattr: +ENTRY(fremovexattr) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ fremovexattr: popl %ecx popl %ebx ret +END(fremovexattr) diff --git a/libc/arch-x86/syscalls/fsetxattr.S b/libc/arch-x86/syscalls/fsetxattr.S index a70ca4fbf..c3d588e85 100644 --- a/libc/arch-x86/syscalls/fsetxattr.S +++ b/libc/arch-x86/syscalls/fsetxattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fsetxattr, @function - .globl fsetxattr - .align 4 - -fsetxattr: +ENTRY(fsetxattr) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ fsetxattr: popl %ecx popl %ebx ret +END(fsetxattr) diff --git a/libc/arch-x86/syscalls/fstat.S b/libc/arch-x86/syscalls/fstat.S index 8f58316dd..95301d956 100644 --- a/libc/arch-x86/syscalls/fstat.S +++ b/libc/arch-x86/syscalls/fstat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fstat, @function - .globl fstat - .align 4 - -fstat: +ENTRY(fstat) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ fstat: popl %ecx popl %ebx ret +END(fstat) diff --git a/libc/arch-x86/syscalls/fstatat.S b/libc/arch-x86/syscalls/fstatat.S index 4926e998e..947f4dac1 100644 --- a/libc/arch-x86/syscalls/fstatat.S +++ b/libc/arch-x86/syscalls/fstatat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fstatat, @function - .globl fstatat - .align 4 - -fstatat: +ENTRY(fstatat) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ fstatat: popl %ecx popl %ebx ret +END(fstatat) diff --git a/libc/arch-x86/syscalls/fsync.S b/libc/arch-x86/syscalls/fsync.S index d9fd225ed..363b334a1 100644 --- a/libc/arch-x86/syscalls/fsync.S +++ b/libc/arch-x86/syscalls/fsync.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type fsync, @function - .globl fsync - .align 4 - -fsync: +ENTRY(fsync) pushl %ebx mov 8(%esp), %ebx movl $__NR_fsync, %eax @@ -21,3 +17,4 @@ fsync: 1: popl %ebx ret +END(fsync) diff --git a/libc/arch-x86/syscalls/ftruncate.S b/libc/arch-x86/syscalls/ftruncate.S index 25b7df58e..1ed3f96f9 100644 --- a/libc/arch-x86/syscalls/ftruncate.S +++ b/libc/arch-x86/syscalls/ftruncate.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type ftruncate, @function - .globl ftruncate - .align 4 - -ftruncate: +ENTRY(ftruncate) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ ftruncate: popl %ecx popl %ebx ret +END(ftruncate) diff --git a/libc/arch-x86/syscalls/ftruncate64.S b/libc/arch-x86/syscalls/ftruncate64.S index 66835ab38..fa6dbef8d 100644 --- a/libc/arch-x86/syscalls/ftruncate64.S +++ b/libc/arch-x86/syscalls/ftruncate64.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type ftruncate64, @function - .globl ftruncate64 - .align 4 - -ftruncate64: +ENTRY(ftruncate64) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ ftruncate64: popl %ecx popl %ebx ret +END(ftruncate64) diff --git a/libc/arch-x86/syscalls/futex.S b/libc/arch-x86/syscalls/futex.S index ac51316bc..f72be1b39 100644 --- a/libc/arch-x86/syscalls/futex.S +++ b/libc/arch-x86/syscalls/futex.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type futex, @function - .globl futex - .align 4 - -futex: +ENTRY(futex) pushl %ebx pushl %ecx pushl %edx @@ -36,3 +32,4 @@ futex: popl %ecx popl %ebx ret +END(futex) diff --git a/libc/arch-x86/syscalls/getdents.S b/libc/arch-x86/syscalls/getdents.S index b8c527fe3..c5d2721be 100644 --- a/libc/arch-x86/syscalls/getdents.S +++ b/libc/arch-x86/syscalls/getdents.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getdents, @function - .globl getdents - .align 4 - -getdents: +ENTRY(getdents) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ getdents: popl %ecx popl %ebx ret +END(getdents) diff --git a/libc/arch-x86/syscalls/getegid.S b/libc/arch-x86/syscalls/getegid.S index e34a147d5..c26ebc251 100644 --- a/libc/arch-x86/syscalls/getegid.S +++ b/libc/arch-x86/syscalls/getegid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getegid, @function - .globl getegid - .align 4 - -getegid: +ENTRY(getegid) movl $__NR_getegid32, %eax int $0x80 cmpl $-129, %eax @@ -18,3 +14,4 @@ getegid: orl $-1, %eax 1: ret +END(getegid) diff --git a/libc/arch-x86/syscalls/geteuid.S b/libc/arch-x86/syscalls/geteuid.S index 8ec72973d..a7761e80a 100644 --- a/libc/arch-x86/syscalls/geteuid.S +++ b/libc/arch-x86/syscalls/geteuid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type geteuid, @function - .globl geteuid - .align 4 - -geteuid: +ENTRY(geteuid) movl $__NR_geteuid32, %eax int $0x80 cmpl $-129, %eax @@ -18,3 +14,4 @@ geteuid: orl $-1, %eax 1: ret +END(geteuid) diff --git a/libc/arch-x86/syscalls/getgid.S b/libc/arch-x86/syscalls/getgid.S index d69d722f2..7a5120002 100644 --- a/libc/arch-x86/syscalls/getgid.S +++ b/libc/arch-x86/syscalls/getgid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getgid, @function - .globl getgid - .align 4 - -getgid: +ENTRY(getgid) movl $__NR_getgid32, %eax int $0x80 cmpl $-129, %eax @@ -18,3 +14,4 @@ getgid: orl $-1, %eax 1: ret +END(getgid) diff --git a/libc/arch-x86/syscalls/getgroups.S b/libc/arch-x86/syscalls/getgroups.S index f6a9912ee..35bc3f589 100644 --- a/libc/arch-x86/syscalls/getgroups.S +++ b/libc/arch-x86/syscalls/getgroups.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getgroups, @function - .globl getgroups - .align 4 - -getgroups: +ENTRY(getgroups) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ getgroups: popl %ecx popl %ebx ret +END(getgroups) diff --git a/libc/arch-x86/syscalls/getitimer.S b/libc/arch-x86/syscalls/getitimer.S index f170ebf9f..79957dad6 100644 --- a/libc/arch-x86/syscalls/getitimer.S +++ b/libc/arch-x86/syscalls/getitimer.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getitimer, @function - .globl getitimer - .align 4 - -getitimer: +ENTRY(getitimer) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ getitimer: popl %ecx popl %ebx ret +END(getitimer) diff --git a/libc/arch-x86/syscalls/getpeername.S b/libc/arch-x86/syscalls/getpeername.S index b6f8eb80c..383199034 100644 --- a/libc/arch-x86/syscalls/getpeername.S +++ b/libc/arch-x86/syscalls/getpeername.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getpeername, @function - .globl getpeername - .align 4 - -getpeername: +ENTRY(getpeername) pushl %ebx pushl %ecx mov $7, %ebx @@ -25,3 +21,4 @@ getpeername: popl %ecx popl %ebx ret +END(getpeername) diff --git a/libc/arch-x86/syscalls/getpgid.S b/libc/arch-x86/syscalls/getpgid.S index ca1e65900..f49abbf70 100644 --- a/libc/arch-x86/syscalls/getpgid.S +++ b/libc/arch-x86/syscalls/getpgid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getpgid, @function - .globl getpgid - .align 4 - -getpgid: +ENTRY(getpgid) pushl %ebx mov 8(%esp), %ebx movl $__NR_getpgid, %eax @@ -21,3 +17,4 @@ getpgid: 1: popl %ebx ret +END(getpgid) diff --git a/libc/arch-x86/syscalls/getpid.S b/libc/arch-x86/syscalls/getpid.S index df43b880d..29703e86e 100644 --- a/libc/arch-x86/syscalls/getpid.S +++ b/libc/arch-x86/syscalls/getpid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getpid, @function - .globl getpid - .align 4 - -getpid: +ENTRY(getpid) movl $__NR_getpid, %eax int $0x80 cmpl $-129, %eax @@ -18,3 +14,4 @@ getpid: orl $-1, %eax 1: ret +END(getpid) diff --git a/libc/arch-x86/syscalls/getppid.S b/libc/arch-x86/syscalls/getppid.S index 9a882bdff..dc89d6e3e 100644 --- a/libc/arch-x86/syscalls/getppid.S +++ b/libc/arch-x86/syscalls/getppid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getppid, @function - .globl getppid - .align 4 - -getppid: +ENTRY(getppid) movl $__NR_getppid, %eax int $0x80 cmpl $-129, %eax @@ -18,3 +14,4 @@ getppid: orl $-1, %eax 1: ret +END(getppid) diff --git a/libc/arch-x86/syscalls/getresgid.S b/libc/arch-x86/syscalls/getresgid.S index d43aec408..08a37e7ac 100644 --- a/libc/arch-x86/syscalls/getresgid.S +++ b/libc/arch-x86/syscalls/getresgid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getresgid, @function - .globl getresgid - .align 4 - -getresgid: +ENTRY(getresgid) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ getresgid: popl %ecx popl %ebx ret +END(getresgid) diff --git a/libc/arch-x86/syscalls/getresuid.S b/libc/arch-x86/syscalls/getresuid.S index f489d406a..435a901c7 100644 --- a/libc/arch-x86/syscalls/getresuid.S +++ b/libc/arch-x86/syscalls/getresuid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getresuid, @function - .globl getresuid - .align 4 - -getresuid: +ENTRY(getresuid) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ getresuid: popl %ecx popl %ebx ret +END(getresuid) diff --git a/libc/arch-x86/syscalls/getrlimit.S b/libc/arch-x86/syscalls/getrlimit.S index f4c334ffe..8f6edd6fc 100644 --- a/libc/arch-x86/syscalls/getrlimit.S +++ b/libc/arch-x86/syscalls/getrlimit.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getrlimit, @function - .globl getrlimit - .align 4 - -getrlimit: +ENTRY(getrlimit) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ getrlimit: popl %ecx popl %ebx ret +END(getrlimit) diff --git a/libc/arch-x86/syscalls/getrusage.S b/libc/arch-x86/syscalls/getrusage.S index 750ab5b63..ee47f3d65 100644 --- a/libc/arch-x86/syscalls/getrusage.S +++ b/libc/arch-x86/syscalls/getrusage.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getrusage, @function - .globl getrusage - .align 4 - -getrusage: +ENTRY(getrusage) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ getrusage: popl %ecx popl %ebx ret +END(getrusage) diff --git a/libc/arch-x86/syscalls/getsid.S b/libc/arch-x86/syscalls/getsid.S index 7046b9a01..876bf6a33 100644 --- a/libc/arch-x86/syscalls/getsid.S +++ b/libc/arch-x86/syscalls/getsid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getsid, @function - .globl getsid - .align 4 - -getsid: +ENTRY(getsid) pushl %ebx mov 8(%esp), %ebx movl $__NR_getsid, %eax @@ -21,3 +17,4 @@ getsid: 1: popl %ebx ret +END(getsid) diff --git a/libc/arch-x86/syscalls/getsockname.S b/libc/arch-x86/syscalls/getsockname.S index 884acd9bd..b28ecb871 100644 --- a/libc/arch-x86/syscalls/getsockname.S +++ b/libc/arch-x86/syscalls/getsockname.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getsockname, @function - .globl getsockname - .align 4 - -getsockname: +ENTRY(getsockname) pushl %ebx pushl %ecx mov $6, %ebx @@ -25,3 +21,4 @@ getsockname: popl %ecx popl %ebx ret +END(getsockname) diff --git a/libc/arch-x86/syscalls/getsockopt.S b/libc/arch-x86/syscalls/getsockopt.S index a606532b1..190b6f293 100644 --- a/libc/arch-x86/syscalls/getsockopt.S +++ b/libc/arch-x86/syscalls/getsockopt.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getsockopt, @function - .globl getsockopt - .align 4 - -getsockopt: +ENTRY(getsockopt) pushl %ebx pushl %ecx mov $15, %ebx @@ -25,3 +21,4 @@ getsockopt: popl %ecx popl %ebx ret +END(getsockopt) diff --git a/libc/arch-x86/syscalls/gettid.S b/libc/arch-x86/syscalls/gettid.S index 2e8cb5980..c1e6ba048 100644 --- a/libc/arch-x86/syscalls/gettid.S +++ b/libc/arch-x86/syscalls/gettid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type gettid, @function - .globl gettid - .align 4 - -gettid: +ENTRY(gettid) movl $__NR_gettid, %eax int $0x80 cmpl $-129, %eax @@ -18,3 +14,4 @@ gettid: orl $-1, %eax 1: ret +END(gettid) diff --git a/libc/arch-x86/syscalls/gettimeofday.S b/libc/arch-x86/syscalls/gettimeofday.S index feffe926d..34b998273 100644 --- a/libc/arch-x86/syscalls/gettimeofday.S +++ b/libc/arch-x86/syscalls/gettimeofday.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type gettimeofday, @function - .globl gettimeofday - .align 4 - -gettimeofday: +ENTRY(gettimeofday) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ gettimeofday: popl %ecx popl %ebx ret +END(gettimeofday) diff --git a/libc/arch-x86/syscalls/getuid.S b/libc/arch-x86/syscalls/getuid.S index 635105ec9..e82b8b011 100644 --- a/libc/arch-x86/syscalls/getuid.S +++ b/libc/arch-x86/syscalls/getuid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getuid, @function - .globl getuid - .align 4 - -getuid: +ENTRY(getuid) movl $__NR_getuid32, %eax int $0x80 cmpl $-129, %eax @@ -18,3 +14,4 @@ getuid: orl $-1, %eax 1: ret +END(getuid) diff --git a/libc/arch-x86/syscalls/getxattr.S b/libc/arch-x86/syscalls/getxattr.S index 80d2fc444..92f7c30e4 100644 --- a/libc/arch-x86/syscalls/getxattr.S +++ b/libc/arch-x86/syscalls/getxattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type getxattr, @function - .globl getxattr - .align 4 - -getxattr: +ENTRY(getxattr) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ getxattr: popl %ecx popl %ebx ret +END(getxattr) diff --git a/libc/arch-x86/syscalls/init_module.S b/libc/arch-x86/syscalls/init_module.S index 2e2b088f7..3ef9b365d 100644 --- a/libc/arch-x86/syscalls/init_module.S +++ b/libc/arch-x86/syscalls/init_module.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type init_module, @function - .globl init_module - .align 4 - -init_module: +ENTRY(init_module) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ init_module: popl %ecx popl %ebx ret +END(init_module) diff --git a/libc/arch-x86/syscalls/inotify_add_watch.S b/libc/arch-x86/syscalls/inotify_add_watch.S index 12a12e451..7b57f3cf2 100644 --- a/libc/arch-x86/syscalls/inotify_add_watch.S +++ b/libc/arch-x86/syscalls/inotify_add_watch.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type inotify_add_watch, @function - .globl inotify_add_watch - .align 4 - -inotify_add_watch: +ENTRY(inotify_add_watch) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ inotify_add_watch: popl %ecx popl %ebx ret +END(inotify_add_watch) diff --git a/libc/arch-x86/syscalls/inotify_init.S b/libc/arch-x86/syscalls/inotify_init.S index 2d186c4f3..c19174b85 100644 --- a/libc/arch-x86/syscalls/inotify_init.S +++ b/libc/arch-x86/syscalls/inotify_init.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type inotify_init, @function - .globl inotify_init - .align 4 - -inotify_init: +ENTRY(inotify_init) pushl %ebx mov 8(%esp), %ebx movl $__NR_inotify_init, %eax @@ -21,3 +17,4 @@ inotify_init: 1: popl %ebx ret +END(inotify_init) diff --git a/libc/arch-x86/syscalls/inotify_rm_watch.S b/libc/arch-x86/syscalls/inotify_rm_watch.S index f9318334a..351bdc2cb 100644 --- a/libc/arch-x86/syscalls/inotify_rm_watch.S +++ b/libc/arch-x86/syscalls/inotify_rm_watch.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type inotify_rm_watch, @function - .globl inotify_rm_watch - .align 4 - -inotify_rm_watch: +ENTRY(inotify_rm_watch) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ inotify_rm_watch: popl %ecx popl %ebx ret +END(inotify_rm_watch) diff --git a/libc/arch-x86/syscalls/ioprio_get.S b/libc/arch-x86/syscalls/ioprio_get.S index 3620271d0..b64662f1c 100644 --- a/libc/arch-x86/syscalls/ioprio_get.S +++ b/libc/arch-x86/syscalls/ioprio_get.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type ioprio_get, @function - .globl ioprio_get - .align 4 - -ioprio_get: +ENTRY(ioprio_get) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ ioprio_get: popl %ecx popl %ebx ret +END(ioprio_get) diff --git a/libc/arch-x86/syscalls/ioprio_set.S b/libc/arch-x86/syscalls/ioprio_set.S index 174d923f2..6f2a4f320 100644 --- a/libc/arch-x86/syscalls/ioprio_set.S +++ b/libc/arch-x86/syscalls/ioprio_set.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type ioprio_set, @function - .globl ioprio_set - .align 4 - -ioprio_set: +ENTRY(ioprio_set) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ ioprio_set: popl %ecx popl %ebx ret +END(ioprio_set) diff --git a/libc/arch-x86/syscalls/kill.S b/libc/arch-x86/syscalls/kill.S index e495c5414..99fe9a99b 100644 --- a/libc/arch-x86/syscalls/kill.S +++ b/libc/arch-x86/syscalls/kill.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type kill, @function - .globl kill - .align 4 - -kill: +ENTRY(kill) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ kill: popl %ecx popl %ebx ret +END(kill) diff --git a/libc/arch-x86/syscalls/klogctl.S b/libc/arch-x86/syscalls/klogctl.S index e46c8ae73..e9f8b792e 100644 --- a/libc/arch-x86/syscalls/klogctl.S +++ b/libc/arch-x86/syscalls/klogctl.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type klogctl, @function - .globl klogctl - .align 4 - -klogctl: +ENTRY(klogctl) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ klogctl: popl %ecx popl %ebx ret +END(klogctl) diff --git a/libc/arch-x86/syscalls/lchown.S b/libc/arch-x86/syscalls/lchown.S index f584a3205..779f703fa 100644 --- a/libc/arch-x86/syscalls/lchown.S +++ b/libc/arch-x86/syscalls/lchown.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type lchown, @function - .globl lchown - .align 4 - -lchown: +ENTRY(lchown) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ lchown: popl %ecx popl %ebx ret +END(lchown) diff --git a/libc/arch-x86/syscalls/lgetxattr.S b/libc/arch-x86/syscalls/lgetxattr.S index 3f5b63ea5..3781bfff5 100644 --- a/libc/arch-x86/syscalls/lgetxattr.S +++ b/libc/arch-x86/syscalls/lgetxattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type lgetxattr, @function - .globl lgetxattr - .align 4 - -lgetxattr: +ENTRY(lgetxattr) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ lgetxattr: popl %ecx popl %ebx ret +END(lgetxattr) diff --git a/libc/arch-x86/syscalls/link.S b/libc/arch-x86/syscalls/link.S index 3946dbf18..dac7d0e94 100644 --- a/libc/arch-x86/syscalls/link.S +++ b/libc/arch-x86/syscalls/link.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type link, @function - .globl link - .align 4 - -link: +ENTRY(link) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ link: popl %ecx popl %ebx ret +END(link) diff --git a/libc/arch-x86/syscalls/listen.S b/libc/arch-x86/syscalls/listen.S index de310cf0a..8f63945d7 100644 --- a/libc/arch-x86/syscalls/listen.S +++ b/libc/arch-x86/syscalls/listen.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type listen, @function - .globl listen - .align 4 - -listen: +ENTRY(listen) pushl %ebx pushl %ecx mov $4, %ebx @@ -25,3 +21,4 @@ listen: popl %ecx popl %ebx ret +END(listen) diff --git a/libc/arch-x86/syscalls/listxattr.S b/libc/arch-x86/syscalls/listxattr.S index 88109bbc9..853c47b38 100644 --- a/libc/arch-x86/syscalls/listxattr.S +++ b/libc/arch-x86/syscalls/listxattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type listxattr, @function - .globl listxattr - .align 4 - -listxattr: +ENTRY(listxattr) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ listxattr: popl %ecx popl %ebx ret +END(listxattr) diff --git a/libc/arch-x86/syscalls/llistxattr.S b/libc/arch-x86/syscalls/llistxattr.S index fa8505ce5..cd7038b72 100644 --- a/libc/arch-x86/syscalls/llistxattr.S +++ b/libc/arch-x86/syscalls/llistxattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type llistxattr, @function - .globl llistxattr - .align 4 - -llistxattr: +ENTRY(llistxattr) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ llistxattr: popl %ecx popl %ebx ret +END(llistxattr) diff --git a/libc/arch-x86/syscalls/lremovexattr.S b/libc/arch-x86/syscalls/lremovexattr.S index f6c7afe06..93973d6ef 100644 --- a/libc/arch-x86/syscalls/lremovexattr.S +++ b/libc/arch-x86/syscalls/lremovexattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type lremovexattr, @function - .globl lremovexattr - .align 4 - -lremovexattr: +ENTRY(lremovexattr) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ lremovexattr: popl %ecx popl %ebx ret +END(lremovexattr) diff --git a/libc/arch-x86/syscalls/lseek.S b/libc/arch-x86/syscalls/lseek.S index 0b2c57c66..f6250e610 100644 --- a/libc/arch-x86/syscalls/lseek.S +++ b/libc/arch-x86/syscalls/lseek.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type lseek, @function - .globl lseek - .align 4 - -lseek: +ENTRY(lseek) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ lseek: popl %ecx popl %ebx ret +END(lseek) diff --git a/libc/arch-x86/syscalls/lsetxattr.S b/libc/arch-x86/syscalls/lsetxattr.S index 56c8cf88d..c5dbc3062 100644 --- a/libc/arch-x86/syscalls/lsetxattr.S +++ b/libc/arch-x86/syscalls/lsetxattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type lsetxattr, @function - .globl lsetxattr - .align 4 - -lsetxattr: +ENTRY(lsetxattr) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ lsetxattr: popl %ecx popl %ebx ret +END(lsetxattr) diff --git a/libc/arch-x86/syscalls/lstat.S b/libc/arch-x86/syscalls/lstat.S index 4739f3296..4e25faec9 100644 --- a/libc/arch-x86/syscalls/lstat.S +++ b/libc/arch-x86/syscalls/lstat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type lstat, @function - .globl lstat - .align 4 - -lstat: +ENTRY(lstat) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ lstat: popl %ecx popl %ebx ret +END(lstat) diff --git a/libc/arch-x86/syscalls/madvise.S b/libc/arch-x86/syscalls/madvise.S index 2423cc23c..bf3e5dc90 100644 --- a/libc/arch-x86/syscalls/madvise.S +++ b/libc/arch-x86/syscalls/madvise.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type madvise, @function - .globl madvise - .align 4 - -madvise: +ENTRY(madvise) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ madvise: popl %ecx popl %ebx ret +END(madvise) diff --git a/libc/arch-x86/syscalls/mincore.S b/libc/arch-x86/syscalls/mincore.S index 1e02ac201..37df63920 100644 --- a/libc/arch-x86/syscalls/mincore.S +++ b/libc/arch-x86/syscalls/mincore.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type mincore, @function - .globl mincore - .align 4 - -mincore: +ENTRY(mincore) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ mincore: popl %ecx popl %ebx ret +END(mincore) diff --git a/libc/arch-x86/syscalls/mkdir.S b/libc/arch-x86/syscalls/mkdir.S index 4f1d1572a..16a5c0355 100644 --- a/libc/arch-x86/syscalls/mkdir.S +++ b/libc/arch-x86/syscalls/mkdir.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type mkdir, @function - .globl mkdir - .align 4 - -mkdir: +ENTRY(mkdir) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ mkdir: popl %ecx popl %ebx ret +END(mkdir) diff --git a/libc/arch-x86/syscalls/mkdirat.S b/libc/arch-x86/syscalls/mkdirat.S index 10406d3c6..ece2c2707 100644 --- a/libc/arch-x86/syscalls/mkdirat.S +++ b/libc/arch-x86/syscalls/mkdirat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type mkdirat, @function - .globl mkdirat - .align 4 - -mkdirat: +ENTRY(mkdirat) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ mkdirat: popl %ecx popl %ebx ret +END(mkdirat) diff --git a/libc/arch-x86/syscalls/mknod.S b/libc/arch-x86/syscalls/mknod.S index 8df1013af..22fc390ff 100644 --- a/libc/arch-x86/syscalls/mknod.S +++ b/libc/arch-x86/syscalls/mknod.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type mknod, @function - .globl mknod - .align 4 - -mknod: +ENTRY(mknod) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ mknod: popl %ecx popl %ebx ret +END(mknod) diff --git a/libc/arch-x86/syscalls/mlock.S b/libc/arch-x86/syscalls/mlock.S index 85323d201..5010e0078 100644 --- a/libc/arch-x86/syscalls/mlock.S +++ b/libc/arch-x86/syscalls/mlock.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type mlock, @function - .globl mlock - .align 4 - -mlock: +ENTRY(mlock) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ mlock: popl %ecx popl %ebx ret +END(mlock) diff --git a/libc/arch-x86/syscalls/mlockall.S b/libc/arch-x86/syscalls/mlockall.S index ad242133c..849b44f30 100644 --- a/libc/arch-x86/syscalls/mlockall.S +++ b/libc/arch-x86/syscalls/mlockall.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type mlockall, @function - .globl mlockall - .align 4 - -mlockall: +ENTRY(mlockall) pushl %ebx mov 8(%esp), %ebx movl $__NR_mlockall, %eax @@ -21,3 +17,4 @@ mlockall: 1: popl %ebx ret +END(mlockall) diff --git a/libc/arch-x86/syscalls/mount.S b/libc/arch-x86/syscalls/mount.S index 46237d3df..9ceeab93d 100644 --- a/libc/arch-x86/syscalls/mount.S +++ b/libc/arch-x86/syscalls/mount.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type mount, @function - .globl mount - .align 4 - -mount: +ENTRY(mount) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ mount: popl %ecx popl %ebx ret +END(mount) diff --git a/libc/arch-x86/syscalls/mprotect.S b/libc/arch-x86/syscalls/mprotect.S index f44d564d8..4438bfe41 100644 --- a/libc/arch-x86/syscalls/mprotect.S +++ b/libc/arch-x86/syscalls/mprotect.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type mprotect, @function - .globl mprotect - .align 4 - -mprotect: +ENTRY(mprotect) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ mprotect: popl %ecx popl %ebx ret +END(mprotect) diff --git a/libc/arch-x86/syscalls/mremap.S b/libc/arch-x86/syscalls/mremap.S index 891261c4a..d33a8dc6f 100644 --- a/libc/arch-x86/syscalls/mremap.S +++ b/libc/arch-x86/syscalls/mremap.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type mremap, @function - .globl mremap - .align 4 - -mremap: +ENTRY(mremap) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ mremap: popl %ecx popl %ebx ret +END(mremap) diff --git a/libc/arch-x86/syscalls/msync.S b/libc/arch-x86/syscalls/msync.S index b83ce0191..2da5bc748 100644 --- a/libc/arch-x86/syscalls/msync.S +++ b/libc/arch-x86/syscalls/msync.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type msync, @function - .globl msync - .align 4 - -msync: +ENTRY(msync) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ msync: popl %ecx popl %ebx ret +END(msync) diff --git a/libc/arch-x86/syscalls/munlock.S b/libc/arch-x86/syscalls/munlock.S index 75ee75ee7..574d17b20 100644 --- a/libc/arch-x86/syscalls/munlock.S +++ b/libc/arch-x86/syscalls/munlock.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type munlock, @function - .globl munlock - .align 4 - -munlock: +ENTRY(munlock) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ munlock: popl %ecx popl %ebx ret +END(munlock) diff --git a/libc/arch-x86/syscalls/munlockall.S b/libc/arch-x86/syscalls/munlockall.S index c43e16264..f69316a16 100644 --- a/libc/arch-x86/syscalls/munlockall.S +++ b/libc/arch-x86/syscalls/munlockall.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type munlockall, @function - .globl munlockall - .align 4 - -munlockall: +ENTRY(munlockall) movl $__NR_munlockall, %eax int $0x80 cmpl $-129, %eax @@ -18,3 +14,4 @@ munlockall: orl $-1, %eax 1: ret +END(munlockall) diff --git a/libc/arch-x86/syscalls/munmap.S b/libc/arch-x86/syscalls/munmap.S index b25184404..91c73c1cf 100644 --- a/libc/arch-x86/syscalls/munmap.S +++ b/libc/arch-x86/syscalls/munmap.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type munmap, @function - .globl munmap - .align 4 - -munmap: +ENTRY(munmap) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ munmap: popl %ecx popl %ebx ret +END(munmap) diff --git a/libc/arch-x86/syscalls/nanosleep.S b/libc/arch-x86/syscalls/nanosleep.S index c274d4fc1..6d2df089c 100644 --- a/libc/arch-x86/syscalls/nanosleep.S +++ b/libc/arch-x86/syscalls/nanosleep.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type nanosleep, @function - .globl nanosleep - .align 4 - -nanosleep: +ENTRY(nanosleep) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ nanosleep: popl %ecx popl %ebx ret +END(nanosleep) diff --git a/libc/arch-x86/syscalls/pause.S b/libc/arch-x86/syscalls/pause.S index 3fe1546c6..70be691cb 100644 --- a/libc/arch-x86/syscalls/pause.S +++ b/libc/arch-x86/syscalls/pause.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type pause, @function - .globl pause - .align 4 - -pause: +ENTRY(pause) movl $__NR_pause, %eax int $0x80 cmpl $-129, %eax @@ -18,3 +14,4 @@ pause: orl $-1, %eax 1: ret +END(pause) diff --git a/libc/arch-x86/syscalls/perf_event_open.S b/libc/arch-x86/syscalls/perf_event_open.S index 5c15c5f9d..6466b45f3 100644 --- a/libc/arch-x86/syscalls/perf_event_open.S +++ b/libc/arch-x86/syscalls/perf_event_open.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type perf_event_open, @function - .globl perf_event_open - .align 4 - -perf_event_open: +ENTRY(perf_event_open) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ perf_event_open: popl %ecx popl %ebx ret +END(perf_event_open) diff --git a/libc/arch-x86/syscalls/personality.S b/libc/arch-x86/syscalls/personality.S index af4f9120f..b23b5925a 100644 --- a/libc/arch-x86/syscalls/personality.S +++ b/libc/arch-x86/syscalls/personality.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type personality, @function - .globl personality - .align 4 - -personality: +ENTRY(personality) pushl %ebx mov 8(%esp), %ebx movl $__NR_personality, %eax @@ -21,3 +17,4 @@ personality: 1: popl %ebx ret +END(personality) diff --git a/libc/arch-x86/syscalls/pipe.S b/libc/arch-x86/syscalls/pipe.S index d13090948..1560badff 100644 --- a/libc/arch-x86/syscalls/pipe.S +++ b/libc/arch-x86/syscalls/pipe.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type pipe, @function - .globl pipe - .align 4 - -pipe: +ENTRY(pipe) pushl %ebx mov 8(%esp), %ebx movl $__NR_pipe, %eax @@ -21,3 +17,4 @@ pipe: 1: popl %ebx ret +END(pipe) diff --git a/libc/arch-x86/syscalls/pipe2.S b/libc/arch-x86/syscalls/pipe2.S index c3354a77f..55fe08f4c 100644 --- a/libc/arch-x86/syscalls/pipe2.S +++ b/libc/arch-x86/syscalls/pipe2.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type pipe2, @function - .globl pipe2 - .align 4 - -pipe2: +ENTRY(pipe2) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ pipe2: popl %ecx popl %ebx ret +END(pipe2) diff --git a/libc/arch-x86/syscalls/poll.S b/libc/arch-x86/syscalls/poll.S index b732af666..541d65732 100644 --- a/libc/arch-x86/syscalls/poll.S +++ b/libc/arch-x86/syscalls/poll.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type poll, @function - .globl poll - .align 4 - -poll: +ENTRY(poll) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ poll: popl %ecx popl %ebx ret +END(poll) diff --git a/libc/arch-x86/syscalls/prctl.S b/libc/arch-x86/syscalls/prctl.S index 4ce5d8968..56720fe28 100644 --- a/libc/arch-x86/syscalls/prctl.S +++ b/libc/arch-x86/syscalls/prctl.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type prctl, @function - .globl prctl - .align 4 - -prctl: +ENTRY(prctl) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ prctl: popl %ecx popl %ebx ret +END(prctl) diff --git a/libc/arch-x86/syscalls/pread64.S b/libc/arch-x86/syscalls/pread64.S index eb004a99f..987e9b8e9 100644 --- a/libc/arch-x86/syscalls/pread64.S +++ b/libc/arch-x86/syscalls/pread64.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type pread64, @function - .globl pread64 - .align 4 - -pread64: +ENTRY(pread64) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ pread64: popl %ecx popl %ebx ret +END(pread64) diff --git a/libc/arch-x86/syscalls/pwrite64.S b/libc/arch-x86/syscalls/pwrite64.S index 01389f8cb..8773a2081 100644 --- a/libc/arch-x86/syscalls/pwrite64.S +++ b/libc/arch-x86/syscalls/pwrite64.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type pwrite64, @function - .globl pwrite64 - .align 4 - -pwrite64: +ENTRY(pwrite64) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ pwrite64: popl %ecx popl %ebx ret +END(pwrite64) diff --git a/libc/arch-x86/syscalls/read.S b/libc/arch-x86/syscalls/read.S index 63549dcf4..98b7c12eb 100644 --- a/libc/arch-x86/syscalls/read.S +++ b/libc/arch-x86/syscalls/read.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type read, @function - .globl read - .align 4 - -read: +ENTRY(read) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ read: popl %ecx popl %ebx ret +END(read) diff --git a/libc/arch-x86/syscalls/readahead.S b/libc/arch-x86/syscalls/readahead.S index b89314fc2..b0c00185a 100644 --- a/libc/arch-x86/syscalls/readahead.S +++ b/libc/arch-x86/syscalls/readahead.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type readahead, @function - .globl readahead - .align 4 - -readahead: +ENTRY(readahead) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ readahead: popl %ecx popl %ebx ret +END(readahead) diff --git a/libc/arch-x86/syscalls/readlink.S b/libc/arch-x86/syscalls/readlink.S index 53c76322b..393b5d41d 100644 --- a/libc/arch-x86/syscalls/readlink.S +++ b/libc/arch-x86/syscalls/readlink.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type readlink, @function - .globl readlink - .align 4 - -readlink: +ENTRY(readlink) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ readlink: popl %ecx popl %ebx ret +END(readlink) diff --git a/libc/arch-x86/syscalls/readv.S b/libc/arch-x86/syscalls/readv.S index ed352d25b..d626068a3 100644 --- a/libc/arch-x86/syscalls/readv.S +++ b/libc/arch-x86/syscalls/readv.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type readv, @function - .globl readv - .align 4 - -readv: +ENTRY(readv) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ readv: popl %ecx popl %ebx ret +END(readv) diff --git a/libc/arch-x86/syscalls/recvfrom.S b/libc/arch-x86/syscalls/recvfrom.S index 3a3851802..98558e142 100644 --- a/libc/arch-x86/syscalls/recvfrom.S +++ b/libc/arch-x86/syscalls/recvfrom.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type recvfrom, @function - .globl recvfrom - .align 4 - -recvfrom: +ENTRY(recvfrom) pushl %ebx pushl %ecx mov $12, %ebx @@ -25,3 +21,4 @@ recvfrom: popl %ecx popl %ebx ret +END(recvfrom) diff --git a/libc/arch-x86/syscalls/recvmsg.S b/libc/arch-x86/syscalls/recvmsg.S index aee69d6e6..8b3c7bd51 100644 --- a/libc/arch-x86/syscalls/recvmsg.S +++ b/libc/arch-x86/syscalls/recvmsg.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type recvmsg, @function - .globl recvmsg - .align 4 - -recvmsg: +ENTRY(recvmsg) pushl %ebx pushl %ecx mov $17, %ebx @@ -25,3 +21,4 @@ recvmsg: popl %ecx popl %ebx ret +END(recvmsg) diff --git a/libc/arch-x86/syscalls/removexattr.S b/libc/arch-x86/syscalls/removexattr.S index 235086539..e2211e84c 100644 --- a/libc/arch-x86/syscalls/removexattr.S +++ b/libc/arch-x86/syscalls/removexattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type removexattr, @function - .globl removexattr - .align 4 - -removexattr: +ENTRY(removexattr) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ removexattr: popl %ecx popl %ebx ret +END(removexattr) diff --git a/libc/arch-x86/syscalls/rename.S b/libc/arch-x86/syscalls/rename.S index 79ae119bf..43be21028 100644 --- a/libc/arch-x86/syscalls/rename.S +++ b/libc/arch-x86/syscalls/rename.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type rename, @function - .globl rename - .align 4 - -rename: +ENTRY(rename) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ rename: popl %ecx popl %ebx ret +END(rename) diff --git a/libc/arch-x86/syscalls/renameat.S b/libc/arch-x86/syscalls/renameat.S index 30ba210f4..8084045f8 100644 --- a/libc/arch-x86/syscalls/renameat.S +++ b/libc/arch-x86/syscalls/renameat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type renameat, @function - .globl renameat - .align 4 - -renameat: +ENTRY(renameat) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ renameat: popl %ecx popl %ebx ret +END(renameat) diff --git a/libc/arch-x86/syscalls/rmdir.S b/libc/arch-x86/syscalls/rmdir.S index 124c10daf..b16375c52 100644 --- a/libc/arch-x86/syscalls/rmdir.S +++ b/libc/arch-x86/syscalls/rmdir.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type rmdir, @function - .globl rmdir - .align 4 - -rmdir: +ENTRY(rmdir) pushl %ebx mov 8(%esp), %ebx movl $__NR_rmdir, %eax @@ -21,3 +17,4 @@ rmdir: 1: popl %ebx ret +END(rmdir) diff --git a/libc/arch-x86/syscalls/sched_get_priority_max.S b/libc/arch-x86/syscalls/sched_get_priority_max.S index e2d09a62c..713b02d31 100644 --- a/libc/arch-x86/syscalls/sched_get_priority_max.S +++ b/libc/arch-x86/syscalls/sched_get_priority_max.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sched_get_priority_max, @function - .globl sched_get_priority_max - .align 4 - -sched_get_priority_max: +ENTRY(sched_get_priority_max) pushl %ebx mov 8(%esp), %ebx movl $__NR_sched_get_priority_max, %eax @@ -21,3 +17,4 @@ sched_get_priority_max: 1: popl %ebx ret +END(sched_get_priority_max) diff --git a/libc/arch-x86/syscalls/sched_get_priority_min.S b/libc/arch-x86/syscalls/sched_get_priority_min.S index 0f66eee89..de6768fe0 100644 --- a/libc/arch-x86/syscalls/sched_get_priority_min.S +++ b/libc/arch-x86/syscalls/sched_get_priority_min.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sched_get_priority_min, @function - .globl sched_get_priority_min - .align 4 - -sched_get_priority_min: +ENTRY(sched_get_priority_min) pushl %ebx mov 8(%esp), %ebx movl $__NR_sched_get_priority_min, %eax @@ -21,3 +17,4 @@ sched_get_priority_min: 1: popl %ebx ret +END(sched_get_priority_min) diff --git a/libc/arch-x86/syscalls/sched_getparam.S b/libc/arch-x86/syscalls/sched_getparam.S index 2a8bd0ef6..eabc562cb 100644 --- a/libc/arch-x86/syscalls/sched_getparam.S +++ b/libc/arch-x86/syscalls/sched_getparam.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sched_getparam, @function - .globl sched_getparam - .align 4 - -sched_getparam: +ENTRY(sched_getparam) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ sched_getparam: popl %ecx popl %ebx ret +END(sched_getparam) diff --git a/libc/arch-x86/syscalls/sched_getscheduler.S b/libc/arch-x86/syscalls/sched_getscheduler.S index aaa5f8cb4..2a6c8f798 100644 --- a/libc/arch-x86/syscalls/sched_getscheduler.S +++ b/libc/arch-x86/syscalls/sched_getscheduler.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sched_getscheduler, @function - .globl sched_getscheduler - .align 4 - -sched_getscheduler: +ENTRY(sched_getscheduler) pushl %ebx mov 8(%esp), %ebx movl $__NR_sched_getscheduler, %eax @@ -21,3 +17,4 @@ sched_getscheduler: 1: popl %ebx ret +END(sched_getscheduler) diff --git a/libc/arch-x86/syscalls/sched_rr_get_interval.S b/libc/arch-x86/syscalls/sched_rr_get_interval.S index 58ccddd66..3f032d5b5 100644 --- a/libc/arch-x86/syscalls/sched_rr_get_interval.S +++ b/libc/arch-x86/syscalls/sched_rr_get_interval.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sched_rr_get_interval, @function - .globl sched_rr_get_interval - .align 4 - -sched_rr_get_interval: +ENTRY(sched_rr_get_interval) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ sched_rr_get_interval: popl %ecx popl %ebx ret +END(sched_rr_get_interval) diff --git a/libc/arch-x86/syscalls/sched_setaffinity.S b/libc/arch-x86/syscalls/sched_setaffinity.S index 5fa51ef34..988f6b4bb 100644 --- a/libc/arch-x86/syscalls/sched_setaffinity.S +++ b/libc/arch-x86/syscalls/sched_setaffinity.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sched_setaffinity, @function - .globl sched_setaffinity - .align 4 - -sched_setaffinity: +ENTRY(sched_setaffinity) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ sched_setaffinity: popl %ecx popl %ebx ret +END(sched_setaffinity) diff --git a/libc/arch-x86/syscalls/sched_setparam.S b/libc/arch-x86/syscalls/sched_setparam.S index 4b869bf44..a250783fd 100644 --- a/libc/arch-x86/syscalls/sched_setparam.S +++ b/libc/arch-x86/syscalls/sched_setparam.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sched_setparam, @function - .globl sched_setparam - .align 4 - -sched_setparam: +ENTRY(sched_setparam) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ sched_setparam: popl %ecx popl %ebx ret +END(sched_setparam) diff --git a/libc/arch-x86/syscalls/sched_setscheduler.S b/libc/arch-x86/syscalls/sched_setscheduler.S index 099a6d17f..c6851ba87 100644 --- a/libc/arch-x86/syscalls/sched_setscheduler.S +++ b/libc/arch-x86/syscalls/sched_setscheduler.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sched_setscheduler, @function - .globl sched_setscheduler - .align 4 - -sched_setscheduler: +ENTRY(sched_setscheduler) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ sched_setscheduler: popl %ecx popl %ebx ret +END(sched_setscheduler) diff --git a/libc/arch-x86/syscalls/sched_yield.S b/libc/arch-x86/syscalls/sched_yield.S index fcd728184..3dcc7fc6d 100644 --- a/libc/arch-x86/syscalls/sched_yield.S +++ b/libc/arch-x86/syscalls/sched_yield.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sched_yield, @function - .globl sched_yield - .align 4 - -sched_yield: +ENTRY(sched_yield) pushl %ebx mov 8(%esp), %ebx movl $__NR_sched_yield, %eax @@ -21,3 +17,4 @@ sched_yield: 1: popl %ebx ret +END(sched_yield) diff --git a/libc/arch-x86/syscalls/select.S b/libc/arch-x86/syscalls/select.S index 27359a919..b66528183 100644 --- a/libc/arch-x86/syscalls/select.S +++ b/libc/arch-x86/syscalls/select.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type select, @function - .globl select - .align 4 - -select: +ENTRY(select) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ select: popl %ecx popl %ebx ret +END(select) diff --git a/libc/arch-x86/syscalls/sendfile.S b/libc/arch-x86/syscalls/sendfile.S index 2752eec05..b36fa1fc7 100644 --- a/libc/arch-x86/syscalls/sendfile.S +++ b/libc/arch-x86/syscalls/sendfile.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sendfile, @function - .globl sendfile - .align 4 - -sendfile: +ENTRY(sendfile) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ sendfile: popl %ecx popl %ebx ret +END(sendfile) diff --git a/libc/arch-x86/syscalls/sendmsg.S b/libc/arch-x86/syscalls/sendmsg.S index 5f2662317..119d63280 100644 --- a/libc/arch-x86/syscalls/sendmsg.S +++ b/libc/arch-x86/syscalls/sendmsg.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sendmsg, @function - .globl sendmsg - .align 4 - -sendmsg: +ENTRY(sendmsg) pushl %ebx pushl %ecx mov $16, %ebx @@ -25,3 +21,4 @@ sendmsg: popl %ecx popl %ebx ret +END(sendmsg) diff --git a/libc/arch-x86/syscalls/sendto.S b/libc/arch-x86/syscalls/sendto.S index d79a2ba13..82208fe1d 100644 --- a/libc/arch-x86/syscalls/sendto.S +++ b/libc/arch-x86/syscalls/sendto.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sendto, @function - .globl sendto - .align 4 - -sendto: +ENTRY(sendto) pushl %ebx pushl %ecx mov $11, %ebx @@ -25,3 +21,4 @@ sendto: popl %ecx popl %ebx ret +END(sendto) diff --git a/libc/arch-x86/syscalls/setgid.S b/libc/arch-x86/syscalls/setgid.S index 67fd02ee9..37f5ffe69 100644 --- a/libc/arch-x86/syscalls/setgid.S +++ b/libc/arch-x86/syscalls/setgid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type setgid, @function - .globl setgid - .align 4 - -setgid: +ENTRY(setgid) pushl %ebx mov 8(%esp), %ebx movl $__NR_setgid32, %eax @@ -21,3 +17,4 @@ setgid: 1: popl %ebx ret +END(setgid) diff --git a/libc/arch-x86/syscalls/setgroups.S b/libc/arch-x86/syscalls/setgroups.S index b6bab1154..20266e0b0 100644 --- a/libc/arch-x86/syscalls/setgroups.S +++ b/libc/arch-x86/syscalls/setgroups.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type setgroups, @function - .globl setgroups - .align 4 - -setgroups: +ENTRY(setgroups) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ setgroups: popl %ecx popl %ebx ret +END(setgroups) diff --git a/libc/arch-x86/syscalls/setitimer.S b/libc/arch-x86/syscalls/setitimer.S index 29d4bc6aa..97ee7c647 100644 --- a/libc/arch-x86/syscalls/setitimer.S +++ b/libc/arch-x86/syscalls/setitimer.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type setitimer, @function - .globl setitimer - .align 4 - -setitimer: +ENTRY(setitimer) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ setitimer: popl %ecx popl %ebx ret +END(setitimer) diff --git a/libc/arch-x86/syscalls/setpgid.S b/libc/arch-x86/syscalls/setpgid.S index df723820d..8ff927355 100644 --- a/libc/arch-x86/syscalls/setpgid.S +++ b/libc/arch-x86/syscalls/setpgid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type setpgid, @function - .globl setpgid - .align 4 - -setpgid: +ENTRY(setpgid) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ setpgid: popl %ecx popl %ebx ret +END(setpgid) diff --git a/libc/arch-x86/syscalls/setpriority.S b/libc/arch-x86/syscalls/setpriority.S index 39d7a185c..7358a8900 100644 --- a/libc/arch-x86/syscalls/setpriority.S +++ b/libc/arch-x86/syscalls/setpriority.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type setpriority, @function - .globl setpriority - .align 4 - -setpriority: +ENTRY(setpriority) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ setpriority: popl %ecx popl %ebx ret +END(setpriority) diff --git a/libc/arch-x86/syscalls/setregid.S b/libc/arch-x86/syscalls/setregid.S index c3112de6a..bbe092fe8 100644 --- a/libc/arch-x86/syscalls/setregid.S +++ b/libc/arch-x86/syscalls/setregid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type setregid, @function - .globl setregid - .align 4 - -setregid: +ENTRY(setregid) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ setregid: popl %ecx popl %ebx ret +END(setregid) diff --git a/libc/arch-x86/syscalls/setresgid.S b/libc/arch-x86/syscalls/setresgid.S index 8e6c8c9b9..c2358374a 100644 --- a/libc/arch-x86/syscalls/setresgid.S +++ b/libc/arch-x86/syscalls/setresgid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type setresgid, @function - .globl setresgid - .align 4 - -setresgid: +ENTRY(setresgid) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ setresgid: popl %ecx popl %ebx ret +END(setresgid) diff --git a/libc/arch-x86/syscalls/setrlimit.S b/libc/arch-x86/syscalls/setrlimit.S index 31613c556..d7f507246 100644 --- a/libc/arch-x86/syscalls/setrlimit.S +++ b/libc/arch-x86/syscalls/setrlimit.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type setrlimit, @function - .globl setrlimit - .align 4 - -setrlimit: +ENTRY(setrlimit) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ setrlimit: popl %ecx popl %ebx ret +END(setrlimit) diff --git a/libc/arch-x86/syscalls/setsid.S b/libc/arch-x86/syscalls/setsid.S index db3138017..684b304a2 100644 --- a/libc/arch-x86/syscalls/setsid.S +++ b/libc/arch-x86/syscalls/setsid.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type setsid, @function - .globl setsid - .align 4 - -setsid: +ENTRY(setsid) movl $__NR_setsid, %eax int $0x80 cmpl $-129, %eax @@ -18,3 +14,4 @@ setsid: orl $-1, %eax 1: ret +END(setsid) diff --git a/libc/arch-x86/syscalls/setsockopt.S b/libc/arch-x86/syscalls/setsockopt.S index d1c986a02..9c701166d 100644 --- a/libc/arch-x86/syscalls/setsockopt.S +++ b/libc/arch-x86/syscalls/setsockopt.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type setsockopt, @function - .globl setsockopt - .align 4 - -setsockopt: +ENTRY(setsockopt) pushl %ebx pushl %ecx mov $14, %ebx @@ -25,3 +21,4 @@ setsockopt: popl %ecx popl %ebx ret +END(setsockopt) diff --git a/libc/arch-x86/syscalls/settimeofday.S b/libc/arch-x86/syscalls/settimeofday.S index e77fa1eaa..bc95fec01 100644 --- a/libc/arch-x86/syscalls/settimeofday.S +++ b/libc/arch-x86/syscalls/settimeofday.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type settimeofday, @function - .globl settimeofday - .align 4 - -settimeofday: +ENTRY(settimeofday) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ settimeofday: popl %ecx popl %ebx ret +END(settimeofday) diff --git a/libc/arch-x86/syscalls/setxattr.S b/libc/arch-x86/syscalls/setxattr.S index 38be736ba..9dc87e3a8 100644 --- a/libc/arch-x86/syscalls/setxattr.S +++ b/libc/arch-x86/syscalls/setxattr.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type setxattr, @function - .globl setxattr - .align 4 - -setxattr: +ENTRY(setxattr) pushl %ebx pushl %ecx pushl %edx @@ -33,3 +29,4 @@ setxattr: popl %ecx popl %ebx ret +END(setxattr) diff --git a/libc/arch-x86/syscalls/shutdown.S b/libc/arch-x86/syscalls/shutdown.S index 45f066425..7fa36a1f2 100644 --- a/libc/arch-x86/syscalls/shutdown.S +++ b/libc/arch-x86/syscalls/shutdown.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type shutdown, @function - .globl shutdown - .align 4 - -shutdown: +ENTRY(shutdown) pushl %ebx pushl %ecx mov $13, %ebx @@ -25,3 +21,4 @@ shutdown: popl %ecx popl %ebx ret +END(shutdown) diff --git a/libc/arch-x86/syscalls/sigaction.S b/libc/arch-x86/syscalls/sigaction.S index b16e3aa24..4fd5993c1 100644 --- a/libc/arch-x86/syscalls/sigaction.S +++ b/libc/arch-x86/syscalls/sigaction.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sigaction, @function - .globl sigaction - .align 4 - -sigaction: +ENTRY(sigaction) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ sigaction: popl %ecx popl %ebx ret +END(sigaction) diff --git a/libc/arch-x86/syscalls/sigaltstack.S b/libc/arch-x86/syscalls/sigaltstack.S index d39419d16..830c99ff0 100644 --- a/libc/arch-x86/syscalls/sigaltstack.S +++ b/libc/arch-x86/syscalls/sigaltstack.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sigaltstack, @function - .globl sigaltstack - .align 4 - -sigaltstack: +ENTRY(sigaltstack) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ sigaltstack: popl %ecx popl %ebx ret +END(sigaltstack) diff --git a/libc/arch-x86/syscalls/signalfd4.S b/libc/arch-x86/syscalls/signalfd4.S index f1c2ea020..57e0233be 100644 --- a/libc/arch-x86/syscalls/signalfd4.S +++ b/libc/arch-x86/syscalls/signalfd4.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type signalfd4, @function - .globl signalfd4 - .align 4 - -signalfd4: +ENTRY(signalfd4) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ signalfd4: popl %ecx popl %ebx ret +END(signalfd4) diff --git a/libc/arch-x86/syscalls/sigpending.S b/libc/arch-x86/syscalls/sigpending.S index 228088606..2f009b2ee 100644 --- a/libc/arch-x86/syscalls/sigpending.S +++ b/libc/arch-x86/syscalls/sigpending.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sigpending, @function - .globl sigpending - .align 4 - -sigpending: +ENTRY(sigpending) pushl %ebx mov 8(%esp), %ebx movl $__NR_sigpending, %eax @@ -21,3 +17,4 @@ sigpending: 1: popl %ebx ret +END(sigpending) diff --git a/libc/arch-x86/syscalls/sigprocmask.S b/libc/arch-x86/syscalls/sigprocmask.S index 42fcf92e9..81cdfa2c7 100644 --- a/libc/arch-x86/syscalls/sigprocmask.S +++ b/libc/arch-x86/syscalls/sigprocmask.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sigprocmask, @function - .globl sigprocmask - .align 4 - -sigprocmask: +ENTRY(sigprocmask) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ sigprocmask: popl %ecx popl %ebx ret +END(sigprocmask) diff --git a/libc/arch-x86/syscalls/socket.S b/libc/arch-x86/syscalls/socket.S index 89a8358d2..8cc93bd7a 100644 --- a/libc/arch-x86/syscalls/socket.S +++ b/libc/arch-x86/syscalls/socket.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type socket, @function - .globl socket - .align 4 - -socket: +ENTRY(socket) pushl %ebx pushl %ecx mov $1, %ebx @@ -25,3 +21,4 @@ socket: popl %ecx popl %ebx ret +END(socket) diff --git a/libc/arch-x86/syscalls/socketpair.S b/libc/arch-x86/syscalls/socketpair.S index 02229893b..ccfc847f3 100644 --- a/libc/arch-x86/syscalls/socketpair.S +++ b/libc/arch-x86/syscalls/socketpair.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type socketpair, @function - .globl socketpair - .align 4 - -socketpair: +ENTRY(socketpair) pushl %ebx pushl %ecx mov $8, %ebx @@ -25,3 +21,4 @@ socketpair: popl %ecx popl %ebx ret +END(socketpair) diff --git a/libc/arch-x86/syscalls/stat.S b/libc/arch-x86/syscalls/stat.S index c9984f1e4..83d1af8de 100644 --- a/libc/arch-x86/syscalls/stat.S +++ b/libc/arch-x86/syscalls/stat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type stat, @function - .globl stat - .align 4 - -stat: +ENTRY(stat) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ stat: popl %ecx popl %ebx ret +END(stat) diff --git a/libc/arch-x86/syscalls/symlink.S b/libc/arch-x86/syscalls/symlink.S index 04c4298c4..dbc5490cb 100644 --- a/libc/arch-x86/syscalls/symlink.S +++ b/libc/arch-x86/syscalls/symlink.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type symlink, @function - .globl symlink - .align 4 - -symlink: +ENTRY(symlink) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ symlink: popl %ecx popl %ebx ret +END(symlink) diff --git a/libc/arch-x86/syscalls/sync.S b/libc/arch-x86/syscalls/sync.S index 5a6a72729..f337c2c3d 100644 --- a/libc/arch-x86/syscalls/sync.S +++ b/libc/arch-x86/syscalls/sync.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sync, @function - .globl sync - .align 4 - -sync: +ENTRY(sync) pushl %ebx mov 8(%esp), %ebx movl $__NR_sync, %eax @@ -21,3 +17,4 @@ sync: 1: popl %ebx ret +END(sync) diff --git a/libc/arch-x86/syscalls/sysinfo.S b/libc/arch-x86/syscalls/sysinfo.S index c60c37b37..ef9fcb050 100644 --- a/libc/arch-x86/syscalls/sysinfo.S +++ b/libc/arch-x86/syscalls/sysinfo.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type sysinfo, @function - .globl sysinfo - .align 4 - -sysinfo: +ENTRY(sysinfo) pushl %ebx mov 8(%esp), %ebx movl $__NR_sysinfo, %eax @@ -21,3 +17,4 @@ sysinfo: 1: popl %ebx ret +END(sysinfo) diff --git a/libc/arch-x86/syscalls/tgkill.S b/libc/arch-x86/syscalls/tgkill.S index 99af74079..6d5dc8828 100644 --- a/libc/arch-x86/syscalls/tgkill.S +++ b/libc/arch-x86/syscalls/tgkill.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type tgkill, @function - .globl tgkill - .align 4 - -tgkill: +ENTRY(tgkill) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ tgkill: popl %ecx popl %ebx ret +END(tgkill) diff --git a/libc/arch-x86/syscalls/times.S b/libc/arch-x86/syscalls/times.S index 543f2be9c..04991a8ea 100644 --- a/libc/arch-x86/syscalls/times.S +++ b/libc/arch-x86/syscalls/times.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type times, @function - .globl times - .align 4 - -times: +ENTRY(times) pushl %ebx mov 8(%esp), %ebx movl $__NR_times, %eax @@ -21,3 +17,4 @@ times: 1: popl %ebx ret +END(times) diff --git a/libc/arch-x86/syscalls/tkill.S b/libc/arch-x86/syscalls/tkill.S index f1f174bc5..51eb1c869 100644 --- a/libc/arch-x86/syscalls/tkill.S +++ b/libc/arch-x86/syscalls/tkill.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type tkill, @function - .globl tkill - .align 4 - -tkill: +ENTRY(tkill) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ tkill: popl %ecx popl %ebx ret +END(tkill) diff --git a/libc/arch-x86/syscalls/truncate.S b/libc/arch-x86/syscalls/truncate.S index 8c6646dfb..9e9b08d9e 100644 --- a/libc/arch-x86/syscalls/truncate.S +++ b/libc/arch-x86/syscalls/truncate.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type truncate, @function - .globl truncate - .align 4 - -truncate: +ENTRY(truncate) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ truncate: popl %ecx popl %ebx ret +END(truncate) diff --git a/libc/arch-x86/syscalls/umask.S b/libc/arch-x86/syscalls/umask.S index fe3d8cd18..f2bf7b0ce 100644 --- a/libc/arch-x86/syscalls/umask.S +++ b/libc/arch-x86/syscalls/umask.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type umask, @function - .globl umask - .align 4 - -umask: +ENTRY(umask) pushl %ebx mov 8(%esp), %ebx movl $__NR_umask, %eax @@ -21,3 +17,4 @@ umask: 1: popl %ebx ret +END(umask) diff --git a/libc/arch-x86/syscalls/umount2.S b/libc/arch-x86/syscalls/umount2.S index fdb53542a..194948938 100644 --- a/libc/arch-x86/syscalls/umount2.S +++ b/libc/arch-x86/syscalls/umount2.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type umount2, @function - .globl umount2 - .align 4 - -umount2: +ENTRY(umount2) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ umount2: popl %ecx popl %ebx ret +END(umount2) diff --git a/libc/arch-x86/syscalls/uname.S b/libc/arch-x86/syscalls/uname.S index b5e8bfac4..9b2c74642 100644 --- a/libc/arch-x86/syscalls/uname.S +++ b/libc/arch-x86/syscalls/uname.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type uname, @function - .globl uname - .align 4 - -uname: +ENTRY(uname) pushl %ebx mov 8(%esp), %ebx movl $__NR_uname, %eax @@ -21,3 +17,4 @@ uname: 1: popl %ebx ret +END(uname) diff --git a/libc/arch-x86/syscalls/unlink.S b/libc/arch-x86/syscalls/unlink.S index 0fe52bf0a..0d9ce84df 100644 --- a/libc/arch-x86/syscalls/unlink.S +++ b/libc/arch-x86/syscalls/unlink.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type unlink, @function - .globl unlink - .align 4 - -unlink: +ENTRY(unlink) pushl %ebx mov 8(%esp), %ebx movl $__NR_unlink, %eax @@ -21,3 +17,4 @@ unlink: 1: popl %ebx ret +END(unlink) diff --git a/libc/arch-x86/syscalls/unlinkat.S b/libc/arch-x86/syscalls/unlinkat.S index f6f8c1750..d05b4880f 100644 --- a/libc/arch-x86/syscalls/unlinkat.S +++ b/libc/arch-x86/syscalls/unlinkat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type unlinkat, @function - .globl unlinkat - .align 4 - -unlinkat: +ENTRY(unlinkat) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ unlinkat: popl %ecx popl %ebx ret +END(unlinkat) diff --git a/libc/arch-x86/syscalls/unshare.S b/libc/arch-x86/syscalls/unshare.S index ef31a3574..da0f563e4 100644 --- a/libc/arch-x86/syscalls/unshare.S +++ b/libc/arch-x86/syscalls/unshare.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type unshare, @function - .globl unshare - .align 4 - -unshare: +ENTRY(unshare) pushl %ebx mov 8(%esp), %ebx movl $__NR_unshare, %eax @@ -21,3 +17,4 @@ unshare: 1: popl %ebx ret +END(unshare) diff --git a/libc/arch-x86/syscalls/utimensat.S b/libc/arch-x86/syscalls/utimensat.S index e2032b5b4..fb1d630da 100644 --- a/libc/arch-x86/syscalls/utimensat.S +++ b/libc/arch-x86/syscalls/utimensat.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type utimensat, @function - .globl utimensat - .align 4 - -utimensat: +ENTRY(utimensat) pushl %ebx pushl %ecx pushl %edx @@ -30,3 +26,4 @@ utimensat: popl %ecx popl %ebx ret +END(utimensat) diff --git a/libc/arch-x86/syscalls/utimes.S b/libc/arch-x86/syscalls/utimes.S index 1a1b51da4..189f6b9a1 100644 --- a/libc/arch-x86/syscalls/utimes.S +++ b/libc/arch-x86/syscalls/utimes.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type utimes, @function - .globl utimes - .align 4 - -utimes: +ENTRY(utimes) pushl %ebx pushl %ecx mov 12(%esp), %ebx @@ -24,3 +20,4 @@ utimes: popl %ecx popl %ebx ret +END(utimes) diff --git a/libc/arch-x86/syscalls/write.S b/libc/arch-x86/syscalls/write.S index caa450f76..7f0b0301a 100644 --- a/libc/arch-x86/syscalls/write.S +++ b/libc/arch-x86/syscalls/write.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type write, @function - .globl write - .align 4 - -write: +ENTRY(write) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ write: popl %ecx popl %ebx ret +END(write) diff --git a/libc/arch-x86/syscalls/writev.S b/libc/arch-x86/syscalls/writev.S index 53d3731e8..0757a444e 100644 --- a/libc/arch-x86/syscalls/writev.S +++ b/libc/arch-x86/syscalls/writev.S @@ -1,12 +1,8 @@ /* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type writev, @function - .globl writev - .align 4 - -writev: +ENTRY(writev) pushl %ebx pushl %ecx pushl %edx @@ -27,3 +23,4 @@ writev: popl %ecx popl %ebx ret +END(writev) diff --git a/libc/include/sys/cdefs.h b/libc/include/sys/cdefs.h index aa65b546c..3617aba53 100644 --- a/libc/include/sys/cdefs.h +++ b/libc/include/sys/cdefs.h @@ -377,11 +377,11 @@ #define __link_set_entry(set, idx) (__link_set_begin(set)[idx]) /* - * Some of the recend FreeBSD sources used in Bionic need this. + * Some of the FreeBSD sources used in Bionic need this. * Originally, this is used to embed the rcs versions of each source file * in the generated binary. We certainly don't want this in Bionic. */ -#define __FBSDID(s) struct __hack +#define __FBSDID(s) /* nothing */ /*- * The following definitions are an extension of the behavior originally diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py index a4e5679eb..a39b63bc5 100755 --- a/libc/tools/gensyscalls.py +++ b/libc/tools/gensyscalls.py @@ -51,14 +51,10 @@ def create_file( relpath ): # x86_header = """/* autogenerated by gensyscalls.py */ +#include <machine/asm.h> #include <sys/linux-syscalls.h> - .text - .type %(fname)s, @function - .globl %(fname)s - .align 4 - -%(fname)s: +ENTRY(%(fname)s) """ x86_registers = [ "%ebx", "%ecx", "%edx", "%esi", "%edi", "%ebp" ] @@ -76,6 +72,7 @@ x86_call = """ movl $%(idname)s, %%eax """ x86_return = """ ret +END(%(fname)s) """ # ARM assembler templates for each syscall stub @@ -288,7 +285,7 @@ class State: for r in range(numparams): result += " popl " + x86_registers[numparams-r-1] + "\n" - result += x86_return + result += x86_return % t return result def x86_genstub_cid(self, fname, numparams, idname, cid): @@ -326,7 +323,7 @@ class State: result += " popl %ebx" + "\n" # epilog - result += x86_return + result += x86_return % t return result def arm_genstub(self,fname, flags, idname): |