[PATCH] Preemptively fix warnings that will be caused by -Wmissing-prototypes

2023-01-09 Thread Flavio Cruz
Declared RPCs in ipc/mach_port.c and ddb/db_ext_symtab.c in their corresponding headers. Ideally these should be used by mig instead of mig declaring its own prototypes. --- Makefrag.am | 1 + ddb/db_ext_symtab.c | 1 + ipc/mach_port.c | 1 - ipc/mach_port.h | 103 ++

[PATCH] Include device/input.h in console-client

2023-01-09 Thread Flavio Cruz
We avoid using repeated definitions and also update kd_event with the new 64bit compatible fields (rpc_time_value). --- console-client/mach-inputdev.h | 56 +- 1 file changed, 1 insertion(+), 55 deletions(-) diff --git a/console-client/mach-inputdev.h b/console-cli

Re: [PATCH] Update configure.ac so that we don't need glibc when running ./configure.

2023-01-09 Thread Flavio Cruz
For x86_64-pc-gnu we still do not have a working glibc so ./configure will fail under a freestanding environment. We force ./configure to avoid running compiled C programs as a test which it is not needed when compiling a kernel. --- On Mon, Jan 09, 2023 at 07:52:21PM +0100, Samuel Thibault wrote:

Re: [PATCH 0/3] htl: move __pthtread_total, ___pthread_self, pthread_self

2023-01-09 Thread Zack Weinberg
On Tue, Jan 3, 2023, at 1:28 PM, Samuel Thibault wrote: > Zack Weinberg via Libc-alpha, le mar. 03 janv. 2023 12:22:20 -0500, a ecrit: >> > With this patch i boot up a hurd system with flavio scripts. >> >> Can we get a link to these scripts, please? So we know why they care >> about these symbol

Re: [PATCH] Export input structures used by Hurd in device/input.h.

2023-01-09 Thread Samuel Thibault
Flavio Cruz, le lun. 09 janv. 2023 00:14:20 -0500, a ecrit: > Also delete sys/ioctl.h and merge it with device/input.h since it is > only needed here. It seems that the _IOR/W/WR macros is currently a mess, various drivers using various conventions. Better isolate the kd piece by itself indeed, so

Re: [PATCH] Remove unused db_lookup_port

2023-01-09 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le lun. 09 janv. 2023 00:27:30 -0500, a ecrit: > --- > ddb/db_print.c | 17 - > 1 file changed, 17 deletions(-) > > diff --git a/ddb/db_print.c b/ddb/db_print.c > index 6d4c59d3..3fbafe74 100644 > --- a/ddb/db_print.c > +++ b/ddb/db_print.c > @@ -480

Re: [PATCH] Remove unused db_set_variable

2023-01-09 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le lun. 09 janv. 2023 00:30:49 -0500, a ecrit: > --- > ddb/db_variables.c | 16 > 1 file changed, 16 deletions(-) > > diff --git a/ddb/db_variables.c b/ddb/db_variables.c > index 3e20e689..40f2d4d3 100644 > --- a/ddb/db_variables.c > +++ b/ddb/db_va

Re: [PATCH] Set max-page-size when linking the kernel to 0x1000.

2023-01-09 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le dim. 08 janv. 2023 22:26:26 -0500, a ecrit: > With the exception of linux, x86_64 ld default's max-page-size > is 2MB (default for i386 is 4K) and compiling gnumach with x86_64-pc-gnu-ld > will generate a kernel image where the boot section starts at the file offse

Re: [PATCH] Update configure.ac so that we don't need glibc when running ./configure.

2023-01-09 Thread Samuel Thibault
Flavio Cruz, le dim. 08 janv. 2023 21:49:40 -0500, a ecrit: > For x86_64-pc-gnu we still do not have a working glibc so ./configure will > fail > under a freestanding environment. We force ./configure to avoid running > compiled C programs as a test which it is not needed when compiling a kernel.

Re: [PATCH] Add support for x86_64-*-gnu-* targets to build x86_64 gnumach/hurd

2023-01-09 Thread Flávio Cruz
Friendly ping On Mon, Dec 26, 2022 at 12:34 PM Flavio Cruz wrote: > Tested by building a toolchain and compiling gnumach for x86_64 [1]. > This is the basic version without unwind support which I think is only > required to > implement exceptions. > > [1] https://github.com/flavioc/cross-hurd/bl