From 7bac741c660be4dcf4d5467b0ab45dc880536f29 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 5 Jan 2001 12:37:16 +0000 Subject: fix of 4/5 parameters unified syscalls from latest dietlibc --- mdk-stage1/dietlibc/Makefile | 2 +- mdk-stage1/dietlibc/i386/unified.S | 4 ++-- mdk-stage1/dietlibc/syscalls.s/mount.S | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 mdk-stage1/dietlibc/syscalls.s/mount.S diff --git a/mdk-stage1/dietlibc/Makefile b/mdk-stage1/dietlibc/Makefile index 74aca4f27..4c0399092 100644 --- a/mdk-stage1/dietlibc/Makefile +++ b/mdk-stage1/dietlibc/Makefile @@ -31,7 +31,7 @@ CFLAGS += -Wall # $(CROSS)strip -x -R .comment -R .note $@ dietlibc.a: $(SYSCALLOBJ) $(LIBOBJ) __longjmp.o longjmp.o setjmp.o \ -start.o unified.o mmap.o mount.o +start.o unified.o mmap.o $(CROSS)ar cru dietlibc.a $^ libdietc.so: dietlibc.a diff --git a/mdk-stage1/dietlibc/i386/unified.S b/mdk-stage1/dietlibc/i386/unified.S index c3cd11001..740cb0ecc 100644 --- a/mdk-stage1/dietlibc/i386/unified.S +++ b/mdk-stage1/dietlibc/i386/unified.S @@ -10,8 +10,8 @@ __unified_syscall: movl 0x10(%esp),%ebx movl 0x14(%esp),%ecx movl 0x18(%esp),%edx - movl 0x1c(%esp),%edi - movl 0x20(%esp),%esi + movl 0x1c(%esp),%esi + movl 0x20(%esp),%edi int $0x80 cmp $-124,%eax jbe .Lnoerror diff --git a/mdk-stage1/dietlibc/syscalls.s/mount.S b/mdk-stage1/dietlibc/syscalls.s/mount.S new file mode 100644 index 000000000..2fd845561 --- /dev/null +++ b/mdk-stage1/dietlibc/syscalls.s/mount.S @@ -0,0 +1,3 @@ +#include "syscalls.h" + +syscall(mount,mount) -- cgit v1.2.1