[PATCH] libstdc++: Introduce GNU/Hurd-specific libstdc++ os-defines.h

2022-08-28 Thread Samuel Thibault
This is notably needed because in glibc 2.34, the move of pthread functions into libc.so happened for Linux only, not GNU/Hurd. The pthread_self() function can also always be used fine as it is. libstdc++-v3/ChangeLog: * config/os/gnu/os_defines.h: New file. * config/os/gnu/ctype

Re: [PATCH 2/2] add rpc_versions for vm types

2022-08-28 Thread Samuel Thibault
Samuel Thibault, le lun. 29 août 2022 01:21:23 +0200, a ecrit: > Hello, > > Luca Dariz, le dim. 03 avril 2022 16:59:55 +0200, a ecrit: > > @@ -88,13 +94,36 @@ typedef unsigned long long rpc_phys_addr_t; > > * expressing the difference between two > > * vm_offset_t entities. > > */ > > -#ifde

Re: [PATCH 2/2] add rpc_versions for vm types

2022-08-28 Thread Samuel Thibault
Hello, Luca Dariz, le dim. 03 avril 2022 16:59:55 +0200, a ecrit: > @@ -88,13 +94,36 @@ typedef unsigned long long rpc_phys_addr_t; > * expressing the difference between two > * vm_offset_t entities. > */ > -#ifdef __x86_64__ > typedef unsigned long vm_size_t; > -#else > -typedef

Re: [PATCH v2] pfinet: Add SIOCADDRT and SIOCDELRT equivalent iioctls

2022-08-28 Thread Guillem Jover
Hi! On Sun, 2022-08-28 at 06:41:21 +, Damien Zammit wrote: > diff --git a/hurd/ioctl_types.h b/hurd/ioctl_types.h > index 8baa36040..c4132a613 100644 > --- a/hurd/ioctl_types.h > +++ b/hurd/ioctl_types.h > @@ -30,4 +30,6 @@ typedef struct winsize winsize_t; > typedef struct sockaddr sockaddr_

Re: Bug#1008208: glib2.0,hurd: GLib fam/gamin support will be removed in approximately 6 months

2022-08-28 Thread Samuel Thibault
As a reminder. The simplest will probably to transpose gamin's hurd support (gamin/server/gam_hurd_mach_notify.c) as a GLocalFileMonitor backend, using gio/kqueue/gkqueuefilemonitor.c as a skeleton example. Samuel Simon McVittie, le jeu. 24 mars 2022 10:55:48 +, a ecrit: > Source: glib2.0,hu

Re: [PATCH 14/15] hack vm memory object proxy creation for vm arrays

2022-08-28 Thread Samuel Thibault
Luca Dariz, le mar. 28 juin 2022 12:10:53 +0200, a ecrit: > * vm/memory_object_proxy.c: truncate vm array types as if they were > the rpc_ version because MIG can't handle that. This rpc can't > handle more than one element anyway. > > Note that the same issue with vm arrays is present at leas

Re: [PATCH 00/15] Add preliminary support for 32-bit userspace on a x86_64 kernel

2022-08-28 Thread Samuel Thibault
Luca Dariz, le mar. 28 juin 2022 12:10:39 +0200, a ecrit: > task /bin/sh(1) deallocating a bogus port 4294967295, most probably a bug. > task mkdir(10) deallocating a bogus port 4294967295, most probably a bug. That's MACH_PORT_DEAD, which is 0x for userland, but with #define MACH_PORT_DE

Re: [PATCH 11/15] update syscall signature with rpc_vm_* and mach_port_name_t

2022-08-28 Thread Samuel Thibault
Have you gone through the whole list of the syscalls? I guess we have to do that to be somehow sure we have not missed anything (rather than relying on noticing odd bugs in userland) Luca Dariz, le mar. 28 juin 2022 12:10:50 +0200, a ecrit: > +mach_port_name_t mach_reply_port (void); Ideally we'd

Re: [PATCH 10/15] x86_64: expand and shrink messages in copy{in, out}msg routines

2022-08-28 Thread Samuel Thibault
Hello, That's great work :D Luca Dariz, le mar. 28 juin 2022 12:10:49 +0200, a ecrit: > diff --git a/i386/i386/copy_user.h b/i386/i386/copy_user.h > new file mode 100644 > index ..ab932401 > --- /dev/null > +++ b/i386/i386/copy_user.h > @@ -0,0 +1,22 @@ Please add the copyright header.

Re: [PATCH v2] pfinet: Add SIOCADDRT and SIOCDELRT equivalent iioctls

2022-08-28 Thread Samuel Thibault
Hello, Damien Zammit, le dim. 28 août 2022 06:41:21 +, a ecrit: > #define _IOT_srtentry _IOT (_IOTS(int), 3, _IOTS(short int), 2, 0, 0) > > /* move to bits/ioctl.h */ > #define SIOCADDRT _IOW('i', 10, struct srtentry) > #define SIOCDELRT _IOW('i', 11, struct srtentry) > > struct srtentry { >

Re: [PATCH v2 0/6] Add initial support for booting x86_64 from grub

2022-08-28 Thread Samuel Thibault
Luca, le dim. 28 août 2022 09:54:43 +0200, a ecrit: > Il 27 agosto 2022 20:02:40 UTC, Samuel Thibault ha > scritto: > > Samuel Thibault, le sam. 27 août 2022 21:41:57 +0200, a ecrit: > > > Mmm, on the set_cr3() in i386at_init call, it reboots... > > > > Ah, reducing the memory size to 2G fixed it

Re: [PATCH 12/15] fix warnings for 32 bit builds

2022-08-28 Thread Luca
Il 27/08/22 21:17, Samuel Thibault ha scritto: Partially applied, thanks! Luca Dariz, le mar. 28 juin 2022 12:10:51 +0200, a ecrit: diff --git a/i386/i386at/biosmem.c b/i386/i386at/biosmem.c index 78e7bb21..fafdc048 100644 --- a/i386/i386at/biosmem.c +++ b/i386/i386at/biosmem.c @@ -29,8 +29,6 @

Re: [PATCH v2 0/6] Add initial support for booting x86_64 from grub

2022-08-28 Thread Luca
Il 27 agosto 2022 20:02:40 UTC, Samuel Thibault ha scritto: Samuel Thibault, le sam. 27 août 2022 21:41:57 +0200, a ecrit: Mmm, on the set_cr3() in i386at_init call, it reboots... Ah, reducing the memory size to 2G fixed it. The kernel_pmap->l4base address was at 0xFFFD3000, apparently that w