Re: THREAD_GETMEM support for Hurd in glibc

2020-02-15 Thread Florian Weimer
* Samuel Thibault: > Hello, > > Florian Weimer, le sam. 15 févr. 2020 11:11:02 +0100, a ecrit: >> Is there a way to add fields to the thread descriptor on Hurd? > > Sure! > >> With NPTL, we have THREAD_GETMEM and THREAD_SETMEM to access >> thread-local variables without relying on the platform TLS

Re: [PATCH 1/2] pci-arbiter: Rename command line options

2020-02-15 Thread Samuel Thibault
Hello, Thanks for reworking this! Joan Lledó via Bug reports for the GNU Hurd, le sam. 15 févr. 2020 12:38:52 +0100, a ecrit: > Replace -s by -c for subclasses. > Replace -D by -d for domains. > Domains are optional from now on, default to 0. > Replace -b by -B for buses. > Bu

Re: [hurd,commited] hurd: Add THREAD_GET/SETMEM/_NC

2020-02-15 Thread Samuel Thibault
Andreas Schwab, le sam. 15 févr. 2020 14:51:24 +0100, a ecrit: > On Feb 15 2020, Samuel Thibault wrote: > > diff --git a/sysdeps/mach/hurd/i386/tls.h b/sysdeps/mach/hurd/i386/tls.h > > index c0341ce2c9..7ec8c81a76 100644 > > --- a/sysdeps/mach/hurd/i386/tls.h > > +++ b/sysdeps/mach/hurd/i386/tls.h

Re: [hurd,commited] hurd: Add THREAD_GET/SETMEM/_NC

2020-02-15 Thread Andreas Schwab
On Feb 15 2020, Samuel Thibault wrote: > diff --git a/sysdeps/mach/hurd/i386/tls.h b/sysdeps/mach/hurd/i386/tls.h > index c0341ce2c9..7ec8c81a76 100644 > --- a/sysdeps/mach/hurd/i386/tls.h > +++ b/sysdeps/mach/hurd/i386/tls.h > @@ -163,6 +163,114 @@ out: > : "i" (offsetof (tcbhead_t, t

Re: THREAD_GETMEM support for Hurd in glibc

2020-02-15 Thread Samuel Thibault
Hello, Florian Weimer, le sam. 15 févr. 2020 11:11:02 +0100, a ecrit: > Is there a way to add fields to the thread descriptor on Hurd? Sure! > With NPTL, we have THREAD_GETMEM and THREAD_SETMEM to access > thread-local variables without relying on the platform TLS > implementation. I have now a

[PATCH 2/2] pci-arbiter: Add --device command line option

2020-02-15 Thread Joan Lledó via Bug reports for the GNU Hurd
From: Joan Lledó Shortcut for -d, -B, -s and -f Usage: --device [:]:. E.G. --device 00:05.0 is shortcut for -d 0 -B 0 -s 5 -f 0 * pci-arbiter/options.c: Implement --slot option * pci-arbiter/options.h: Add --slot to options list --- pci-arbiter/options.c | 60 +++

[PATCH 1/2] pci-arbiter: Rename command line options

2020-02-15 Thread Joan Lledó via Bug reports for the GNU Hurd
From: Joan Lledó Rename some CLI options in order to add the new -d --device arg. Replace -s by -c for subclasses. Replace -D by -d for domains. Domains are optional from now on, default to 0. Replace -b by -B for buses. Bus now creates a new permission scope if the current one

pci arbiter: add new --device command line option

2020-02-15 Thread Joan Lledó via Bug reports for the GNU Hurd
Hello Hurd, I made some changes in the options parser to add a new --device option, as a shortcut for current -D -b -d -f options. I also renamed some options in order to free -D and --device to use it for this purpose. From now on, the formerly called "devices" are now called "slots", and "devic

THREAD_GETMEM support for Hurd in glibc

2020-02-15 Thread Florian Weimer
Is there a way to add fields to the thread descriptor on Hurd? With NPTL, we have THREAD_GETMEM and THREAD_SETMEM to access thread-local variables without relying on the platform TLS implementation. I want to use this for thread-local data in the dynamic loader, specifically for the exception han