# HG changeset patch # User asl # Date 1131219867 0 # Node ID b98f84205fdcce47f743cc3c4380913df84e8546 # Parent de02720a095ba260e290ea8a19fe3e645ec0c2ae * src/syscall-i386-linux-1.0.S: renamed prev_?stat to old?stat to match the kernel. Removed STATCALL2 macro because it caused confusion. Added the new?stat system calls. diff --git a/packages/hal/synth/i386linux/current/ChangeLog b/packages/hal/synth/i386linux/current/ChangeLog --- a/packages/hal/synth/i386linux/current/ChangeLog +++ b/packages/hal/synth/i386linux/current/ChangeLog @@ -1,3 +1,9 @@ +2005-11-05 Andrew Lunn + + * src/syscall-i386-linux-1.0.S: renamed prev_?stat to old?stat to + match the kernel. Removed STATCALL2 macro because it caused + confusion. Added the new?stat system calls. + 2005-06-26 Bart Veer * include/var_intr.h (HAL_DELAY_US): new header to supply diff --git a/packages/hal/synth/i386linux/current/src/syscall-i386-linux-1.0.S b/packages/hal/synth/i386linux/current/src/syscall-i386-linux-1.0.S --- a/packages/hal/synth/i386linux/current/src/syscall-i386-linux-1.0.S +++ b/packages/hal/synth/i386linux/current/src/syscall-i386-linux-1.0.S @@ -157,9 +157,9 @@ #define SYS_klog 103 #define SYS_setitimer 104 #define SYS_getitimer 105 -#define SYS_prev_stat 106 -#define SYS_prev_lstat 107 -#define SYS_prev_fstat 108 +#define SYS_newstat 106 +#define SYS_newlstat 107 +#define SYS_newfstat 108 #define SYS_olduname 109 #define SYS_iopl 110 #define SYS_vhangup 111 @@ -324,20 +324,6 @@ NAME(x): \ END(x) -#define STATCALL2(x) \ - .globl NAME(x) ; \ - \ -NAME(x): \ - \ - push %ebx; \ - mov 8(%esp), %ebx; \ - mov 12(%esp), %ecx; \ - lea SYS_prev_##x, %eax; \ - int $0x80; \ - pop %ebx; \ - ret; \ - END(x) - #define SYSCALL3(x) \ .globl NAME(x) ; \ \ @@ -438,8 +424,12 @@ SYSCALL1(fdatasync) SYSCALL2(getcwd) SYSCALL2(access) SYSCALL3(readdir) -STATCALL2(lstat) -STATCALL2(fstat) +SYSCALL2(oldlstat) +SYSCALL2(oldfstat) +SYSCALL2(oldstat) +SYSCALL2(newlstat) +SYSCALL2(newfstat) +SYSCALL2(newstat) SYSCALL2(mkdir) SYSCALL5(ipc)