Thread (6 messages) flat view 6 messages, 4 authors, 2007-03-17

Re: [PATCH] [POWERPC] Wire up sys_sync_file_range

From: Stephen Rothwell <hidden>
Date: 2007-03-17 15:10:30

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/

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help