[PATCH gnumach] Unmask irq 12 - fixes stuck console with apic

2023-02-18 Thread Damien Zammit
--- i386/i386at/model_dep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index baff8da1..73b99f94 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -177,6 +177,8 @@ void machine_init(void) #warning FIXME: Rather unmask

[PATCH gnumach] model_dep: Call acpi_apic_init if APIC defined

2023-02-18 Thread Damien Zammit
Fixes boot --enable-ncpus=1 with --enable-apic configuration albeit the keyboard is stuck and network cannot be accessed. Error messages: Timeout reached while wating for return value /bin/console: Could not receive return value from daemon process: Connection timed out --- i386/i386at/model_de

Re: [RFC PATCH 8/9 gnumach] Add i386_fsgs_base_state

2023-02-18 Thread Sergey Bugaev
On Sun, Feb 19, 2023 at 12:34 AM Luca wrote: > > Hi! > > Il 18/02/23 21:37, Sergey Bugaev ha scritto: > > +struct i386_fsgs_base_state { > > + unsigned long fs_base; > > + unsigned long gs_base; > > +}; > > The fs and gs registers are also set by i386_REGS_SEGS_STATE. If they > are better

Re: [RFC PATCH 8/9 gnumach] Add i386_fsgs_base_state

2023-02-18 Thread Luca
Hi! Il 18/02/23 21:37, Sergey Bugaev ha scritto: +struct i386_fsgs_base_state { + unsigned long fs_base; + unsigned long gs_base; +}; The fs and gs registers are also set by i386_REGS_SEGS_STATE. If they are better set separately (as it seems from the other patch, but I don't rea

[RFC PATCH 4/9] hurd: Make timer_t pointer-sized

2023-02-18 Thread Sergey Bugaev
This ensures that a timer_t value can be cast to struct timer_node * and back. Signed-off-by: Sergey Bugaev --- sysdeps/mach/hurd/bits/typesizes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/mach/hurd/bits/typesizes.h b/sysdeps/mach/hurd/bits/typesizes.h index 72

[RFC PATCH 9/9] hurd, htl: Add some more x86_64-specific code

2023-02-18 Thread Sergey Bugaev
Signed-off-by: Sergey Bugaev --- sysdeps/mach/hurd/x86/init-first.c | 14 +- sysdeps/mach/hurd/x86_64/tls.h | 257 sysdeps/mach/x86_64/thread_state.h | 51 sysdeps/x86_64/htl/bits/pthreadtypes-arch.h | 36 +++ sysdeps/x86_64/htl/pt-machd

[RFC PATCH 8/9 gnumach] Add i386_fsgs_base_state

2023-02-18 Thread Sergey Bugaev
--- i386/include/mach/i386/thread_status.h | 8 1 file changed, 8 insertions(+) diff --git a/i386/include/mach/i386/thread_status.h b/i386/include/mach/i386/thread_status.h index 3de22ff3..32e40686 100644 --- a/i386/include/mach/i386/thread_status.h +++ b/i386/include/mach/i386/thread_s

[RFC PATCH 6/9] mach: Use PAGE_SIZE

2023-02-18 Thread Sergey Bugaev
The PAGE_SIZE from the Mach headers statically defines the machine's page size. There's no need to query it dynamically; furthermore, the implementation of the vm_statistics () RPC unconditionally fills in pagesize = PAGE_SIZE; Not doing the extra RPC shaves off 2 RPCs from the start-up of every

[RFC PATCH 3/9] hurd: Fix xattr function return type

2023-02-18 Thread Sergey Bugaev
They all return int, not size_t. Signed-off-by: Sergey Bugaev --- sysdeps/mach/hurd/fsetxattr.c| 2 +- sysdeps/mach/hurd/lremovexattr.c | 2 +- sysdeps/mach/hurd/lsetxattr.c| 2 +- sysdeps/mach/hurd/removexattr.c | 2 +- sysdeps/mach/hurd/setxattr.c | 2 +- 5 files changed, 5 insert

[RFC PATCH 1/9] hurd: Move thread state manipulation into _hurd_tls_new ()

2023-02-18 Thread Sergey Bugaev
This is going to be done differently on x86_64. Signed-off-by: Sergey Bugaev --- mach/setup-thread.c | 18 ++ sysdeps/mach/hurd/i386/tls.h | 25 - 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/mach/setup-thread.c b/mach/setup-th

[RFC PATCH 2/9] hurd: Use proper integer types

2023-02-18 Thread Sergey Bugaev
Fix a few more cases of build errors caused by mismatched types. This is a continuation of f4315054b46d5e58b44a709a51943fb73f846afb. Signed-off-by: Sergey Bugaev --- hurd/hurdsig.c | 6 +++--- sysdeps/mach/hurd/getpriority.c | 6 +++--- sysdeps/mach/hurd/if_index.c| 2 +- sy

[RFC PATCH 7/9] hurd: Generalize init-first.c to support x86_64

2023-02-18 Thread Sergey Bugaev
Signed-off-by: Sergey Bugaev --- sysdeps/mach/hurd/{i386 => x86}/init-first.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) rename sysdeps/mach/hurd/{i386 => x86}/init-first.c (96%) diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/x86/init-first.c

[RFC PATCH 5/9] hurd: Simplify init-first.c a bit

2023-02-18 Thread Sergey Bugaev
And make it a bit more 64-bit ready. This is in preparation to moving this file into x86/ Signed-off-by: Sergey Bugaev --- sysdeps/mach/hurd/i386/init-first.c | 23 +++ 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysde

[RFC PATCH 0/9] More x86_64-gnu glibc work

2023-02-18 Thread Sergey Bugaev
Hello, here's some more work on the x86_64-gnu glibc port. Large parts of glibc (almost all of it?) builds, in particular mach/subdir_lib builds cleanly. Patch 6 is really unrelated to the rest of the changes, it's just a small thing that I've noticed while single-stepping through glibc startup,

[sr #110199] Cross-building of GNU/Hurd and additional packages

2023-02-18 Thread Svante Signell
Follow-up Comment #37, sr #110199 (project administration): Hello, Thank you for your reply. If I understand correctly all files under the BSD-3 licence have to contain a copy of the license text. Secondly for other licences every file has to carry a copyright and license notice. All of the abov