Re: [PATCH 0/4] uClibc port to ARCv2 ISA

Max Filippov <[email protected]>
Newsgroups gmane.comp.lib.uclibc.general
Message-ID <CAMo8Bf+Wb_K=60iSJBwvBCC27nvKpxNRNKSVt+uRDE2b86PmzQ@mail.gmail.com>
Hi Vineet,

On Thu, Feb 19, 2015 at 3:17 PM, Vineet Gupta
<[email protected]> wrote:
> xtensa enables UCLIBC_SYSCALL_ALIGN_64BIT. Their upstream kernel defines
> __NR_sync_file_range but uses the sys_sync_file_range2 handler which is
>
> SYSCALL_DEFINE4(sync_file_range2, int, fd, unsigned int, flags, loff_t, offset,
> loff_t, nbytes)
>
> So xtensa will be hosed if we switched their sync_file_range to standard
> UCLIBC_SYSCALL_ALIGN_64BIT handling.
> @Max, @Baruch, cn u please at orig patch below, and see if we can remove __arc__
> from there (I guess we can't)

Looks like it's always been broken, so now it's no more broken than it
was before.
I think xtensa should define __NR_sync_file_range2 instead of
__NR_sync_file_range
in the kernel unistd.h, it matches what other arches do and then the
current uClibc
code will work for it.

-- 
Thanks.
-- Max
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.