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

Re: [PATCH] [POWERPC] Wire up sys_sync_file_range

From: David Woodhouse <dwmw2@infradead.org>
Date: 2007-03-09 06:55:51
Also in: linux-arch

On Fri, 2007-03-09 at 15:22 +1100, Stephen Rothwell wrote:
This requires an architecture specific compat routine as u64s are passed
in odd/even (high/low) register pairs on ppc32.

Signed-off-by: Stephen Rothwell <redacted>
Doesn't that apply to ARM and to 32-bit MIPS too? And perhaps others?
quoted hunk ↗ jump to hunk
--- a/arch/powerpc/kernel/sys_ppc32.c
+++ b/arch/powerpc/kernel/sys_ppc32.c
@@ -814,3 +814,12 @@ asmlinkage long compat_sys_request_key(const char __user *_type,
 	return sys_request_key(_type, _description, _callout_info, destringid);
 }
 
+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);
+}
-- 
dwmw2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help