On Fri, 9 Mar 2007 15:22:01 +1100 Stephen Rothwell [off-list ref] wrote:
+asmlinkage long compat_sys_sync_file_range(int fd, u32 unused,
+ u32 offset_high, u32 offset_low,
+ u32 nbytes_high, u32 nbytes_low,
+ compat_uint_t flags)
+{
+ return sys_sync_file_range(fd, (loff_t)offset_high << 32 | offset_low,
+ (loff_t)nbytes_high << 32 | nbytes_low,
+ (unsigned int)flags);
+}
As pointed out elsewhere, this won't work as it needs to many registers
(we only have 6 for syscall args). Probably our best bet is to follow in
arm's footsteps and create a wrapper that puts the flags arg after fd.
Comments?
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/