This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: Fix __ASSUME_PSELECT for MicroBlaze (bug 16642)
- From: David Holsgrove <david dot holsgrove at xilinx dot com>
- To: Joseph Myers <joseph at codesourcery dot com>, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Cc: Michal Simek <michals at xilinx dot com>
- Date: Wed, 12 Mar 2014 07:14:36 +0000
- Subject: RE: Fix __ASSUME_PSELECT for MicroBlaze (bug 16642)
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1402271832330 dot 27019 at digraph dot polyomino dot org dot uk> <Pine dot LNX dot 4 dot 64 dot 1403012249270 dot 15569 at digraph dot polyomino dot org dot uk>
Hi Joseph,
> -----Original Message-----
> From: Joseph Myers [mailto:joseph@codesourcery.com]
> Sent: Sunday, 2 March 2014 8:56 am
> To: libc-alpha@sourceware.org; David Holsgrove
> Subject: Re: Fix __ASSUME_PSELECT for MicroBlaze (bug 16642)
>
> On Thu, 27 Feb 2014, Joseph S. Myers wrote:
>
> > This patch makes the MicroBlaze kernel-features.h undefine
> > __ASSUME_PSELECT. I'd also encourage wiring it up in the kernel (so
> > you can then make this #undef conditional, and eventually obsolete
> > once a recent-enough kernel is required). I suspect it wasn't wired
> > up because of the mistaken comment in asm/unistd.h "obsolete ->
> > sys_pselect7" (there is no such syscall as pselect7).
>
> It's come to my attention in this review that preadv and pwritev also
> still aren't wired up in the MicroBlaze syscall table. I'll defer a glibc
> patch for the corresponding __ASSUME_* (bug 16649) until the present patch
> is reviewed. David, I'd also encourage wiring up preadv and pwritev in
> the kernel - and reviewing the MicroBlaze syscall table for any more cases
> where syscalls aren't wired up (whether or not the __NR_* values are
> assigned), in case there are some that don't have corresponding glibc
> __ASSUME_* macros and so won't be caught by review of the definitions in
> glibc.
>
Thanks very much for the patch, and for pointing out that miss.
The Microblaze Kernel maintainer (Michal Simek) and I will have a chat and review
the syscall table for Microblaze. I believe Michal has a kernel patch pending to
address pselect already.
In the meantime to let you continue your review, please apply your patch to
undefine __ASSUME_PSELECT for Microblaze.
We'll update at a later stage when we have the kernel version number that adds
support.
thanks again,
David
> --
> Joseph S. Myers
> joseph@codesourcery.com