[PATCH] [POWERPC] Wire up sys_sync_file_range

Stephen Rothwell sfr at canb.auug.org.au
Sun Mar 18 02:10:35 EST 2007


On Fri, 9 Mar 2007 15:22:01 +1100 Stephen Rothwell <sfr at canb.auug.org.au> 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 at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070318/7bccfdda/attachment.pgp>


More information about the Linuxppc-dev mailing list