[PATCH hurd] Comment fixes

2024-11-07 Thread Zhaoming Luo
I don't think ioctls.h is a good place looking for the subsystem id calculation, instead hurd/ioctls.defs, it contains the following codes: ``` /* Calculate the MiG subsystem (i.e. first message ID) for the RPCs produced by ioctl requests in the given group. */ #define IOC_GROUP_SUBSYSTEM(grou

[RFC PATCH v2 0/4] Adding RTC device (work in progress)

2024-11-07 Thread Zhaoming Luo
This v2 patch series applys Sergey's and Samuel's suggestions. The copyright headers have not been added because it is still work in progress. The rest of the work is mainly about filling codes in pioctl-ops.c. Zhaoming Luo (4): Add rtc server into compilation stage Add ioctl interface for rtc

[RFC PATCH v2 3/4] Add rtc interface

2024-11-07 Thread Zhaoming Luo
--- hurd/rtc.h | 21 + 1 file changed, 21 insertions(+) create mode 100644 hurd/rtc.h diff --git a/hurd/rtc.h b/hurd/rtc.h new file mode 100644 index ..957b13a0 --- /dev/null +++ b/hurd/rtc.h @@ -0,0 +1,21 @@ +#ifndef _RTC_H +#define _RTC_H 1 + +#include + +struct rt

[RFC PATCH v2 2/4] Add ioctl interface for rtc device

2024-11-07 Thread Zhaoming Luo
--- hurd/pioctl.defs | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 hurd/pioctl.defs diff --git a/hurd/pioctl.defs b/hurd/pioctl.defs new file mode 100644 index ..144ed14b --- /dev/null +++ b/hurd/pioctl.defs @@ -0,0 +1,34 @@ +/* Definitions

[RFC PATCH v2 4/4] Add rtc server

2024-11-07 Thread Zhaoming Luo
--- rtc/Makefile | 19 +++ rtc/main.c | 88 rtc/mig-mutate.h | 4 +++ rtc/pioctl-ops.c | 28 +++ 4 files changed, 139 insertions(+) create mode 100644 rtc/Makefile create mode 100644 rtc/main.c create mode 100644 rt

[RFC PATCH v2 1/4] Add rtc server into compilation stage

2024-11-07 Thread Zhaoming Luo
--- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 4d848221..8133c9e9 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,8 @@ ifeq ($(HAVE_LIBACPICA),yes) prog-subdirs += acpi endif +prog-subdirs += rtc + # Other directories other-subdirs = hurd doc c

Re: [RFC PATCH] Adding RTC device (work in progress)

2024-11-07 Thread Zhaoming Luo
On 11/7/24 9:42 PM, Sergey Bugaev wrote: Was the explanation clear enough / do you have follow-up questions? Yeah it's clear and I haven't got any questions. Have you made any progress on the RTC server? I've applied the suggestions from you and Samuel. The rest of the stuff is mainly about

Re: [RFC PATCH] Adding RTC device (work in progress)

2024-11-07 Thread Sergey Bugaev
On Wed, Nov 6, 2024 at 4:28 AM Zhaoming Luo wrote: > I think it's worth to put this part into mig documentation website[0], > just like the IRC log pieces we have already had. What do you think? I > can do it. > > [0]: > https://darnassus.sceen.net/~hurd-web/microkernel/mach/mig/documentation/ Su

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

2024-11-07 Thread Marc Poulhiès
Samuel Thibault writes: > 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 OK without the ChangeLog

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

2024-11-07 Thread Marc Poulhiès
Samuel Thibault writes: > 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 > --- OK witho

Re: [PATCHv2 1/3] ada: Factorize bsd signal definitions

2024-11-07 Thread Marc Poulhiès
Samuel Thibault writes: > 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. > * Make