Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78059
b: refs/heads/master
c: d4e9cff
h: refs/heads/master
i:
  78057: 283eddd
  78055: 29c21b2
v: v3
  • Loading branch information
Ralf Baechle committed Jan 29, 2008
1 parent 6a94577 commit 2884808
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e8774b621513e3cc07fa5a7b05adc295c95eeee
refs/heads/master: d4e9cffa161da806cb4bc9df4a4e49d287156bfa
30 changes: 5 additions & 25 deletions trunk/arch/mips/kernel/linux32.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,36 +174,16 @@ struct rlimit32 {
int rlim_max;
};

#ifdef __MIPSEB__
asmlinkage long sys32_truncate64(const char __user * path, unsigned long __dummy,
int length_hi, int length_lo)
#endif
#ifdef __MIPSEL__
asmlinkage long sys32_truncate64(const char __user * path, unsigned long __dummy,
int length_lo, int length_hi)
#endif
asmlinkage long sys32_truncate64(const char __user * path,
unsigned long __dummy, int a2, int a3)
{
loff_t length;

length = ((unsigned long) length_hi << 32) | (unsigned int) length_lo;

return sys_truncate(path, length);
return sys_truncate(path, merge_64(a2, a3));
}

#ifdef __MIPSEB__
asmlinkage long sys32_ftruncate64(unsigned int fd, unsigned long __dummy,
int length_hi, int length_lo)
#endif
#ifdef __MIPSEL__
asmlinkage long sys32_ftruncate64(unsigned int fd, unsigned long __dummy,
int length_lo, int length_hi)
#endif
int a2, int a3)
{
loff_t length;

length = ((unsigned long) length_hi << 32) | (unsigned int) length_lo;

return sys_ftruncate(fd, length);
return sys_ftruncate(fd, merge_64(a2, a3));
}

static inline long
Expand Down

0 comments on commit 2884808

Please sign in to comment.