[PATCH 1/1 Web] Add microkernel/mach/mig/documentation/mig-mutate page

2024-12-10 Thread Zhaoming Luo
* microkernel/mach/mig/documentation.mdwn: add a link pointing to mig-mutate page * .../mach/mig/documentation/mig-mutate.mdwn: new file. Introduction to a mig-mutate.h file Signed-off-by: Zhaoming Luo --- microkernel/mach/mig/documentation.mdwn | 2 +- .../mach/mig/documentation/mig-m

[PATCH 0/1 Web] Add microkernel/mach/mig/documentation/mig-mutate page

2024-12-10 Thread Zhaoming Luo
Add the text about a mig-mutate.h file from mail list[0] to wiki with some modifications so it is more friendly after rendered. [0]: https://mail.gnu.org/archive/html/bug-hurd/2024-11/msg00045.html Zhaoming Luo (1): Add microkernel/mach/mig/documentation/mig-mutate page microkernel/mach/mig/d

[PATCH Hurd v2 0/1] Add rtc translator and RTC CMOS driver

2024-12-10 Thread Zhaoming Luo
Differene with v1: Add a 'signed-off-by' line in the commit message. Zhaoming Luo (1): Add rtc translator and RTC CMOS driver Makefile | 3 +- hurd/pioctl.defs | 59 hurd/rtc.h| 51 +++ rtc/Makefile | 39 ++ rtc/main.

[PATCH Hurd v2 1/1] Add rtc translator and RTC CMOS driver

2024-12-10 Thread Zhaoming Luo
A /hurd/rtc translator will be created as, users can create a /dev/rtc device using the following command: ``` sudo settrans -c /dev/rtc /hurd/rtc ``` * Makefile: add rtc-cmos server into the compile chain * hurd/pioctl.defs: new file. Interfaces for rtc ioctl operations * hurd/rtc.h: new file. In

Re: [PATCH Web] Add an introduction about a mig-mutate.h file

2024-12-10 Thread jbranso
December 9, 2024 at 7:18 AM, "Zhaoming Luo" mailto:zhming...@163.com?to=%22Zhaoming%20Luo%22%20%3Czhmingluo%40163.com%3E > wrote: > > On 12/8/24 9:26 PM, jbra...@dismail.de wrote: > > > > > December 7, 2024 at 7:11 PM, "Zhaoming Luo" > mailto:zhming...@163.com?to=%22Zhaoming%20Luo%22%20%3Cz

Re: [PATCHv3 3/3] ada: Add GNU/Hurd x86_64 support

2024-12-10 Thread Eric Botcazou
> This is essentially the same as the i386-pc-gnu section, the differences > are the same as between freebsd i386 and freebsd x86_64. > > gcc/ada/ChangeLog: > > * Makefile.rtl: Add x86_64-pc-gnu section. It is outdated and probably needs to have $(TRASYM_DWARF_UNIX_PAIRS) and the associ

[PATCHv4 0/3] ada: Add GNU/Hurd x86_64 support

2024-12-10 Thread Samuel Thibault
Difference with v3: Refresh Samuel Thibault (3): ada: Factorize bsd signal definitions ada: Fix GNU/Hurd priority range ada: Add GNU/Hurd x86_64 support gcc/ada/Makefile.rtl | 52 +- ...-intnam__freebsd.ads => a-intnam__bsd.ads} | 2 +- gcc/ada/libgnarl/a-in

[PATCHv4 1/3] ada: Factorize bsd signal definitions

2024-12-10 Thread Samuel Thibault
They are all the same on all BSD-like systems (including GNU/Hurd). gcc/ada/ChangeLog: * libgnarl/a-intnam__freebsd.ads: Rename to... * libgnarl/a-intnam__bsd.ads: ... new file. * libgnarl/a-intnam__dragonfly.ads: Remove file. * Makefile.rtl (x86-kfreebsd, x86-gnuh

[PATCHv4 3/3] ada: Add GNU/Hurd x86_64 support

2024-12-10 Thread Samuel Thibault
This is essentially the same as the i386-pc-gnu section, the differences are the same as between freebsd i386 and freebsd x86_64. gcc/ada/ChangeLog: * Makefile.rtl: Add x86_64-pc-gnu section. Signed-off-by: Samuel Thibault --- gcc/ada/Makefile.rtl | 36 +

[PATCHv4 2/3] ada: Fix GNU/Hurd priority range

2024-12-10 Thread Samuel Thibault
GNU/Mach currently uses a 0..63 range. gcc/ada/ChangeLog: * libgnat/system-gnu.ads: New file. * Makefile.rtl (x86-gnuhurd): Use libgnat/system-gnu.ads instead of libgnat/system-freebsd.ads. Signed-off-by: Samuel Thibault --- gcc/ada/Makefile.rtl | 2 +- gcc/

Re: [PATCHv3 0/3] ada: Add GNU/Hurd x86_64 support

2024-12-10 Thread Samuel Thibault
Hello, Ping on this? Samuel Samuel Thibault, le mar. 12 nov. 2024 21:45:19 +0100, a ecrit: > Difference with v2: dropped the ChangeLog changes > > Samuel Thibault (3): > ada: Factorize bsd signal definitions > ada: Fix GNU/Hurd priority range > ada: Add GNU/Hurd x86_64 support > > gcc/a

Re: zzuf :: memory limits established with setrlimit are not applied

2024-12-10 Thread Samuel Thibault
Hello, Diego Nieto Cid, le mar. 10 déc. 2024 08:41:57 -0300, a ecrit: > Is this a known issue? Yes, it's listed among the todo-list on https://darnassus.sceen.net/~hurd-web/contributing/ because that makes various testsuites put build boxes on their knees (and is what you'd want anyway) Samuel

Re: [PATCH 4/5 gnumach] smp: Make sure BSP is cpu 0 when starting other cpus

2024-12-10 Thread Samuel Thibault
Applied, thanks! Damien Zammit via Bug reports for the GNU Hurd, le mar. 10 déc. 2024 07:30:04 +, a ecrit: > This is basically a no-op but ensures we are doing smp > bringup correctly. > > --- > i386/i386/mp_desc.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a

Re: [PATCH 1/5 gnumach] i386/apic: Fix logical id numbering

2024-12-10 Thread Samuel Thibault
Applied, thanks! Damien Zammit via Bug reports for the GNU Hurd, le mar. 10 déc. 2024 07:29:43 +, a ecrit: > The number is actually a mask bit per cpu. > --- > i386/i386/apic.c | 2 +- > i386/i386/apic.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/i386/i386/a

Re: [PATCH 3/5 gnumach] smp: Delay setting spl_init flag until after smp bringup

2024-12-10 Thread Samuel Thibault
Damien Zammit via Bug reports for the GNU Hurd, le mar. 10 déc. 2024 07:29:56 +, a ecrit: > If this is not done, the spl code is called by kmsg_putchar > on APs during printing of bringup debug, causing the only > unnecessary early access of GS. > --- > i386/i386/mp_desc.c | 3 ++- > i386

Re: [PATCH 1/3] Fix various function pointer types

2024-12-10 Thread Samuel Thibault
Applied the series, thanks! Sergey Bugaev, le mar. 10 déc. 2024 14:57:03 +0300, a ecrit: > Fixes Wincompatible-pointer-types errors on GCC 15. > > Signed-off-by: Sergey Bugaev > --- > ddb/db_variables.h | 2 +- > i386/i386/trap.c | 2 +- > vm/vm_fault.c | 4 ++-- > vm/vm_map.c|

Re: [PATCH 3/3] intr: Protect internals with a lock

2024-12-10 Thread Samuel Thibault
Sergey Bugaev, le mar. 10 déc. 2024 15:24:02 +0300, a ecrit: > On Tue, Dec 10, 2024 at 3:19 PM Samuel Thibault > wrote: > > Sergey Bugaev, le mar. 10 déc. 2024 14:57:05 +0300, a ecrit: > > > @@ -103,11 +105,15 @@ queue_intr (struct irqdev *dev, int id, user_intr_t > > > *e) > > > * disabled.

Re: [PATCH 3/3] intr: Protect internals with a lock

2024-12-10 Thread Sergey Bugaev
On Tue, Dec 10, 2024 at 3:19 PM Samuel Thibault wrote: > Sergey Bugaev, le mar. 10 déc. 2024 14:57:05 +0300, a ecrit: > > @@ -103,11 +105,15 @@ queue_intr (struct irqdev *dev, int id, user_intr_t > > *e) > > * disabled. Level-triggered interrupts would keep raising otherwise. */ > >__disa

Re: [PATCH 3/3] intr: Protect internals with a lock

2024-12-10 Thread Samuel Thibault
Hello, Sergey Bugaev, le mar. 10 déc. 2024 14:57:05 +0300, a ecrit: > @@ -103,11 +105,15 @@ queue_intr (struct irqdev *dev, int id, user_intr_t *e) > * disabled. Level-triggered interrupts would keep raising otherwise. */ >__disable_irq (dev->irq[id]); > > - spl_t s = splhigh (); > +#if

Re: zzuf :: memory limits established with setrlimit are not applied

2024-12-10 Thread Diego Nieto Cid
El mar, 10 dic 2024 a las 8:41, Diego Nieto Cid () escribió: > > Is this a known issue? (besides bug 43320 which involves a child process [1]) > Ok, I just found this comment in `sysdep/mach/hurd/setrlimit.c`: /* Even though most limits do nothing, there is no inheritance, and hard limit

[PATCH 2/3] linux: Fix building with C23

2024-12-10 Thread Sergey Bugaev
'true' and 'false' are keywords in C23. This will equally be an issue on older standards if something pulls in stdbool.h, which make these into macros. In either of these two cases, just typedef 'boolean' from 'bool' (avoiding the enum), and rely on 'true' and 'false' being valid values of the type

[PATCH 3/3] intr: Protect internals with a lock

2024-12-10 Thread Sergey Bugaev
On SMP builds with 2 CPU cores, we've seen whole-system lock-ups caused by irqdev.tot_num_intr getting set to -1, even though it's supposed to always stay non-negative. Indeed, it was modified without the appropriate synchronization. Fix this by protecting it, as well as various other internals of

[PATCH 1/3] Fix various function pointer types

2024-12-10 Thread Sergey Bugaev
Fixes Wincompatible-pointer-types errors on GCC 15. Signed-off-by: Sergey Bugaev --- ddb/db_variables.h | 2 +- i386/i386/trap.c | 2 +- vm/vm_fault.c | 4 ++-- vm/vm_map.c| 2 +- vm/vm_map.h| 8 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ddb/d

zzuf :: memory limits established with setrlimit are not applied

2024-12-10 Thread Diego Nieto Cid
Hi, One of the zzuf tests involves setting a memory limit with `setrlimit` and then running a program to exhaust the available memory. While zzuf does some fancy forking and stdin fuzzing before running such a program, I could manage to reduce the code to a simpler version [2]. On GNU/Linux the m

Re: [PATCH 6/6 gnumach] i386/apic: Fix condition on non-BSP

2024-12-10 Thread Sergey Bugaev
On Tue, Dec 10, 2024 at 12:40 AM Samuel Thibault wrote: > Applied, thanks! FWIW, I noticed that the last few commits from Damien have "Damien Zammit via Bug reports for the GNU Hurd " listed as the Git commit author. Sergey