Re: [RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-17 Thread Zhaoming Luo
Thank you for the review. On 12/18/24 10:02 AM, Diego Nieto Cid wrote: El mar, 17 dic 2024 a las 22:21, Zhaoming Luo () escribió: The precision of this implmentation is 10ms. Not sure how to do with the possible data race. Signed-off-by: Zhaoming Luo --- include/mach/mach_host.defs | 7 ++

Re: [RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-17 Thread Diego Nieto Cid
El mar, 17 dic 2024 a las 22:21, Zhaoming Luo () escribió: > > The precision of this implmentation is 10ms. Not sure how to do with the > possible data race. > > Signed-off-by: Zhaoming Luo > --- > include/mach/mach_host.defs | 7 +++ > kern/mach_clock.c | 20 >

[RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-17 Thread Zhaoming Luo
The precision of this implmentation is 10ms. Not sure how to do with the possible data race. Signed-off-by: Zhaoming Luo --- include/mach/mach_host.defs | 7 +++ kern/mach_clock.c | 20 2 files changed, 27 insertions(+) diff --git a/include/mach/mach_host.def

[PATCH v2 2/2 gnumach] smp: Parallel SMP init

2024-12-17 Thread Damien Zammit via Bug reports for the GNU Hurd
Now that things are in place, we switch to parallel init. The key to this change is that the INIT/STARTUP sequence is done in one step, and all cpus wake up at the same time. Synchronisation is done to complete each cpu setup individually. --- i386/i386/mp_desc.c | 51 +++--

[PATCH v2 1/2 gnumach] cpuboot: Fix percpu apboot_gdt for early gs

2024-12-17 Thread Damien Zammit via Bug reports for the GNU Hurd
This allocates a constant space for percpu gdts and copies the first entry to the nth entry on each cpu, then patches its own copy of the gdt so it can function independently. --- i386/i386/cpuboot.S | 63 ++--- 1 file changed, 53 insertions(+), 10 deletions

[PATCH v2 0/2 gnumach] Parallel SMP init with early gs access

2024-12-17 Thread Damien Zammit via Bug reports for the GNU Hurd
Hi, These two patches complete smp parallel init by preserving early gs access, and makes the cpus all wake concurrently. Care has been taken so memory is not trampled on by other cpus during startup. Thanks, Damien