changeset 2100:b98f84205fdc

* 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.
author asl
date Sat, 05 Nov 2005 19:44:27 +0000
parents de02720a095b
children b3747ba64a2d
files packages/hal/synth/i386linux/current/ChangeLog packages/hal/synth/i386linux/current/src/syscall-i386-linux-1.0.S
diffstat 2 files changed, 15 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/synth/i386linux/current/ChangeLog
+++ b/packages/hal/synth/i386linux/current/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-05  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* 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  <bartv@ecoscentric.com>
 
 	* include/var_intr.h (HAL_DELAY_US): new header to supply
--- 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)