Re: sparc: sys32.S incorrect compat-layer splice() system call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx>
Date: Tue, 18 Aug 2009 23:40:46 -0400

> * David Miller (davem@xxxxxxxxxxxxx) wrote:
>> From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx>
>> Date: Tue, 18 Aug 2009 22:56:23 -0400
>> 
>> > BTW, I can't figure out why we have %o5 in :
>> > 
>> > SIGN2(sys32_sync_file_range, compat_sync_file_range, %o0, %o5)
>> > 
>> > which takes only 4 arguments:
>> > 
>> >        int sync_file_range(int fd, off64_t offset, off64_t nbytes,
>> >                   unsigned int flags);
>> > 
>> > maybe it has something to do with the return value ? Anyway it should
>> > not hurt if it is unused.
>> 
>> It takes 4 arguments, but they are passed in 6 registers.  Each
>> off64_t is passed in two 32-bit register parts.
>> 
> 
> Thanks for the clarification. So the %o5 is there to sign-extend
> "unsigned int flags" ?

Yes, but it seems that might be inappropriate (albeit harmless) here.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux