X86: Fix up the stat structure. This probably still isn't right.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 30 Jul 2007 20:31:59 +0000 (13:31 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 30 Jul 2007 20:31:59 +0000 (13:31 -0700)
--HG--
extra : convert_revision : 2e2a22cdf3abe648c9e1309b9070cfd10fc4a8b8

src/arch/x86/linux/linux.hh

index c1bb67260eb6a39ef5fef9fa649a54db09a5a640..d6dd81ab9c37141b19226108e39c1ac460c24ad3 100644 (file)
@@ -65,23 +65,25 @@ class X86Linux64 : public Linux
   public:
 
     typedef struct {
-        uint32_t st_dev;
-        char __pad1[4];
+        uint64_t st_dev;
         uint64_t st_ino;
+        uint64_t st_nlink;
         uint32_t st_mode;
-        uint16_t st_nlink;
         uint32_t st_uid;
         uint32_t st_gid;
-        uint32_t st_rdev;
-        char __pad2[4];
+        uint32_t __pad0[4];
+        uint64_t st_rdev;
         int64_t st_size;
-        int64_t st_atimeX;
-        int64_t st_mtimeX;
-        int64_t st_ctimeX;
         int64_t st_blksize;
         int64_t st_blocks;
-        uint64_t __unused4[2];
-    } tgt_stat;
+        uint64_t st_atimeX;
+        uint64_t st_atime_nsec;
+        uint64_t st_mtimeX;
+        uint64_t st_mtime_nsec;
+        uint64_t st_ctimeX;
+        uint64_t st_ctime_nsec;
+        int64_t __unused[3];
+    } tgt_stat64;
 
     static OpenFlagTransTable openFlagTable[];