Re: [PATCH v3 4/6] hurd: Add expected abilist files for x86_64

2023-05-06 Thread Samuel Thibault
Sergey Bugaev, le mar. 02 mai 2023 17:10:17 +0300, a ecrit: > As for the best way to implement this... I have always thought gnumach > should have a bootscript directive to expose a multiboot module as a > memobj. Then there would be a task, /hurd/ramdisk, that would expose > it over the device

Re: [PATCH glibc] Update hurd/hurdselect.c to be more portable.

2023-05-06 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le sam. 06 mai 2023 16:55:10 -0400, a ecrit: > Summary of changes: > - Use BAD_TYPECHECK to perform type checking in a cleaner way. > BAD_TYPECHECK is moved into sysdeps/mach/rpc.h to avoid duplication. > - Remove assertions for mach_msg_type_t since those won't

[PATCH glibc] Update hurd/hurdselect.c to be more portable.

2023-05-06 Thread Flavio Cruz
Summary of changes: - Use BAD_TYPECHECK to perform type checking in a cleaner way. BAD_TYPECHECK is moved into sysdeps/mach/rpc.h to avoid duplication. - Remove assertions for mach_msg_type_t since those won't work for x86_64. - Update message structs to use mach_msg_type_t directly. - Use

Re: [PATCH v3 4/6] hurd: Add expected abilist files for x86_64

2023-05-06 Thread Samuel Thibault
Samuel Thibault, le sam. 06 mai 2023 17:20:03 +0200, a ecrit: > Samuel Thibault, le ven. 05 mai 2023 19:23:57 +0200, a ecrit: > > Samuel Thibault, le ven. 05 mai 2023 17:30:11 +0200, a ecrit: > > > Sergey Bugaev, le ven. 05 mai 2023 18:15:00 +0300, a ecrit: > > > > On Fri, May 5, 2023 at 4:30 PM

Re: [PATCH glibc] Update hurd/hurdselect.c to be more portable.

2023-05-06 Thread Samuel Thibault
Flavio Cruz, le ven. 05 mai 2023 00:20:39 -0400, a ecrit: > + /* TODO: add this assertion for x86_64. */ > +#ifndef __x86_64__ > + _Static_assert (sizeof (uint32_t) == sizeof (mach_msg_type_t), > + "mach_msg_type_t needs to be the same size as uint32_t"); > +#endif Now that it

Re: [PATCH hurd] Update eth-multiplexer/vdev.c to be more portable

2023-05-06 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le ven. 05 mai 2023 00:43:36 -0400, a ecrit: > * Perform the correct alignment for x86_64. > * Use designated initializers. > --- > eth-multiplexer/vdev.c | 39 ++- > 1 file changed, 22 insertions(+), 17 deletions(-) > > diff

Re: [PATCH gnumach] Delete include/mach/rpc.h

2023-05-06 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le ven. 05 mai 2023 01:21:48 -0400, a ecrit: > File is unused. > --- > Makefrag.am| 1 - > include/mach/rpc.h | 34 -- > ipc/ipc_port.h | 1 - > ipc/ipc_target.h | 1 - > ipc/mach_port.c| 1 - > 5 files changed,

Re: [PATCH v3 4/6] hurd: Add expected abilist files for x86_64

2023-05-06 Thread Samuel Thibault
Samuel Thibault, le ven. 05 mai 2023 19:23:57 +0200, a ecrit: > Samuel Thibault, le ven. 05 mai 2023 17:30:11 +0200, a ecrit: > > Sergey Bugaev, le ven. 05 mai 2023 18:15:00 +0300, a ecrit: > > > On Fri, May 5, 2023 at 4:30 PM Samuel Thibault > > > wrote: > > > > FI, I'm having debian hurd-amd64

[PATCH] Add hurd-amd64 support

2023-05-06 Thread Samuel Thibault
This adds SIGSEGV_FAULT_STACKPOINTER for the hurd-amd64 case --- ./lib/sigsegv.c.original2023-05-05 10:45:54.673751100 + +++ ./lib/sigsegv.c 2023-05-05 10:48:47.903577554 + @@ -351,6 +351,17 @@ "old esp, if trapped from user". */ # define SIGSEGV_FAULT_STACKPOINTER

[PATCH] hurd-amd64 support

2023-05-06 Thread Samuel Thibault
This adds support for passing -m elf32_x86_64 vs -m elf_x86_64 to the linker on hurd-amd64 Changelog: * m4/libtool.m4: dd x86_64-gnu* case to pass -m elf32_x86_64 vs -m elf_x86_64 to linker. --- m4/libtool.m4.orig 2023-05-03 18:33:23.949698403 +0200 +++ m4/libtool.m4

[PATCH libgpg-error] hurd-amd64 support

2023-05-06 Thread Samuel Thibault
This supports the x86_64-pc-gnu triplet Signed-off-by: Samuel Thibault --- Index: libgpg-error-1.46/src/Makefile.am === --- libgpg-error-1.46.orig/src/Makefile.am +++ libgpg-error-1.46/src/Makefile.am @@ -67,6 +67,7 @@ lock_obj_pub

Re: [PATCH] hurd: Add multilib paths for gnu-x86_64

2023-05-06 Thread Samuel Thibault
(and it'd be useful to have it backported to the 13 branch) Samuel Thibault, le sam. 06 mai 2023 13:50:36 +0200, a ecrit: > We need the multilib paths in gcc to find e.g. glibc crt files on > Debian. This is essentially based on t-linux64 version. > > gcc/ChangeLog: > > *

Re: [PATCH 5/5] add setting gs/fsbase

2023-05-06 Thread Sergey Bugaev
On Sat, May 6, 2023 at 1:12 PM Sergey Bugaev wrote: > This is ld.so in the exec server task trying to dir_lookup > ("/hurd/exec") -- it then crashes ext2fs when it tries to access the > TCB. But before that, ext2fs starts up, spawns all those > libports/libpager worker threads (which now start up

[PATCH] hurd: Ad default-pie and static-pie support

2023-05-06 Thread Samuel Thibault
This fixes the Hurd spec in the default-pie case, and adds static-pie support. gcc/ChangeLog: * gcc/config/i386/gnu.h: Use PIE_SPEC, add static-pie case. * gcc/config/i386/gnu64.h: Use PIE_SPEC, add static-pie case. diff --git a/gcc/config/i386/gnu.h b/gcc/config/i386/gnu.h

[PATCH] hurd: Add multilib paths for gnu-x86_64

2023-05-06 Thread Samuel Thibault
We need the multilib paths in gcc to find e.g. glibc crt files on Debian. This is essentially based on t-linux64 version. gcc/ChangeLog: * gcc/config/i386/t-gnu64: New file. * gcc/config.gcc [x86_64-*-gnu*): Add i386/t-gnu64 to tmake_file. diff --git a/gcc/config.gcc

Re: [PATCH 5/5] add setting gs/fsbase

2023-05-06 Thread Sergey Bugaev
Hello, On Tue, Apr 25, 2023 at 1:59 PM Samuel Thibault wrote: > Sergey Bugaev, le mar. 25 avril 2023 13:25:02 +0300, a ecrit: > > @@ -733,6 +734,10 @@ boolean_t thread_invoke( > > > > counter(c_thread_invoke_hits++); > > (void) spl0(); > > +#ifdef

Re: Prospectives (Was: hurd: Add expected abilist files for x86_64)

2023-05-06 Thread Samuel Thibault
Svante Signell, le sam. 06 mai 2023 10:59:06 +0200, a ecrit: > On Wed, 2023-05-03 at 19:56 +0200, Samuel Thibault wrote: > > Samuel Thibault, le mer. 03 mai 2023 13:09:25 +0200, a ecrit: > > > Sergey Bugaev, le mer. 03 mai 2023 13:26:56 +0300, a ecrit: > > > > > To put another perspective: I have

Re: Prospectives (Was: hurd: Add expected abilist files for x86_64)

2023-05-06 Thread Svante Signell
On Wed, 2023-05-03 at 19:56 +0200, Samuel Thibault wrote: > Samuel Thibault, le mer. 03 mai 2023 13:09:25 +0200, a ecrit: > > Sergey Bugaev, le mer. 03 mai 2023 13:26:56 +0300, a ecrit: > > > > To put another perspective: I have been doing that less funny part for a > > > > long time already. I