Previously the lapic timer was calibrated by one-shot PIT timer2.
This method can be buggy and generally unused in emulation environments.
This patch reworks the timer calibration to use a mach timer based
on regular PIT interrupts to remapped IOAPIC pin.
This also changes the primary clock source
TESTED:
- by setting MACH_LOCK_MON to 1 in configfrag.ac
and running "show all slocks" in kdb
- does not break default configured kernel
---
ddb/db_sym.h | 8
i386/i386/lock.h | 6 +++---
kern/lock.c | 4
kern/lock.h | 5 +
kern/lock_mon.c | 8
kern/t
On 5 Mar 2023, at 20:46, Sergey Bugaev wrote:
>
> Speaking of wrapping the syscall and INTR_MSG_TRAP, I might need a
> little help — is there a proper way to tell GCC that my inline
> assembly needs a specific register as input _and_ clobbers it? In
> Rust, this would be, for instance,
>
> asm!(
Speaking of wrapping the syscall and INTR_MSG_TRAP, I might need a
little help — is there a proper way to tell GCC that my inline
assembly needs a specific register as input _and_ clobbers it? In
Rust, this would be, for instance,
asm!("whatever", inout("rdi") msg => _)
but GCC doesn't like
asm
Hello,
Sergey Bugaev, le dim. 05 mars 2023 23:12:42 +0300, a ecrit:
> On Wed, Mar 1, 2023 at 9:44 AM Luca Dariz wrote:
> > Il 28/02/23 15:14, Sergey Bugaev ha scritto:
> > > - nothing else is clobbered, in particular not rflags (or is the
> > > "reserved" half of rflags clobbered?) and not the re
On Wed, Mar 1, 2023 at 9:44 AM Luca Dariz wrote:
> Il 28/02/23 15:14, Sergey Bugaev ha scritto:
> > - nothing else is clobbered, in particular not rflags (or is the
> > "reserved" half of rflags clobbered?) and not the registers that
> > contain args
>
> if we follow the usual calling conventions,
Hello,
Welcome!
Venkaat Balaje, le ven. 03 mars 2023 17:05:25 +0530, a ecrit:
> I would be grateful if you could give me some pointers as to where I can
> help.
We have collected the pointers on:
https://darnassus.sceen.net/~hurd-web/community/gsoc/project_ideas/rust/
Samuel
Hello,
Ludovic Courtès, le sam. 04 mars 2023 19:36:12 +0100, a ecrit:
> Would you consider tagging a new release and uploading a tarball to
> ftp.gnu.org?
I don't have upload rights. I have already asked for becoming an actual
maintainer, but that takes time...
Samuel
Hello,
Thanks for agreeing to switch to that approach :)
Damien Zammit, le dim. 05 mars 2023 02:06:54 +, a ecrit:
> diff --git a/i386/i386at/ioapic.c b/i386/i386at/ioapic.c
> index d2ea84ad..95c1b368 100644
> --- a/i386/i386at/ioapic.c
> +++ b/i386/i386at/ioapic.c
> @@ -30,9 +30,11 @@
> #inc