Re: [PATCH 16/28] nios2: System calls handling

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

 



On Mon, Apr 21, 2014 at 7:32 PM, Ley Foon Tan <lftan@xxxxxxxxxx> wrote:
> On Sun, Apr 20, 2014 at 12:09 AM, Pavel Machek <pavel@xxxxxxx> wrote:
>>> +/* Additional Nios II specific syscalls. */
>>> +#define __NR_cacheflush (__NR_arch_specific_syscall)
>>> +__SYSCALL(__NR_cacheflush, sys_cacheflush)
>>
>> I guess you should Cc: Michael Kerrisk on this one.
> CC him this email.
>
>>
>> Also... explanation why you need this syscall while other
>> architectures live happily without it would be nice.
> This syscall exist in nios2 port since old days and some users already
> used it for sometimes.
> Like mentioned by Greet, 12 our of 28 architectures provide such a syscall.
>
>>> +/* sys_cacheflush -- flush the processor cache. */
>>> +asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len,
>>> +                             unsigned int op)
>>> +{
>>> +     struct vm_area_struct *vma;
>>> +
>>> +     if (len == 0)
>>> +             return 0;
>>
>> op is being ignored? You should remove it... or if (op) return -EINVAL
>> if you want future extensions.
> Yes, op argument is being ignored. Okay, will add the return -EINVAL
> if op is non-zero.

Be careful. If existing applications already use this and maybe pass a
dummy value
to it you break them.

-- 
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux