diff options
author | H. Peter Anvin <hpa@zytor.com> | 2004-06-08 06:41:29 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2004-06-08 06:41:29 +0000 |
commit | bd50ec0162ba98f759e50c5d91b28bb06f27d796 (patch) | |
tree | 20c1ba6896f4b7adb69ff1d94efa433255617bdd | |
parent | 8204351ba5f9b837c8e358b931d996b8723281b5 (diff) | |
download | klibc-bd50ec0162ba98f759e50c5d91b28bb06f27d796.tar.gz |
open.S - special handling for open(2) for i386klibc-0.126
-rw-r--r-- | klibc/arch/i386/open.S | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/klibc/arch/i386/open.S b/klibc/arch/i386/open.S new file mode 100644 index 0000000000000..8dfc5af886820 --- /dev/null +++ b/klibc/arch/i386/open.S @@ -0,0 +1,22 @@ +/* + * arch/i386/open.S + * + * Handle the open() system call - oddball due to the varadic + * prototype, which forces the use of the cdecl calling convention. + */ + +#include <asm/unistd.h> + + .globl open + .type open,@function + +open: +#ifdef REGPARM + movl 4(%esp),%eax + movl 8(%esp),%edx + movl 12(%esp),%ecx +#endif + pushl $__NR_open + jmp __syscall_common + + .size open,.-open |