bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH gnumach] cpu_number: Look up cpu kernel_id via lookup table


From: Almudena Garcia
Subject: Re: [PATCH gnumach] cpu_number: Look up cpu kernel_id via lookup table
Date: Sun, 6 Aug 2023 14:12:04 +0000

Sorry, I didn't noticed this new CPU_NUMBER macro. I thank that there was a 
previous version without using the LUT.

It's fine now 

El domingo 6 de agosto de 2023, Samuel Thibault escribió:
> Almudena Garcia, le sam. 05 août 2023 12:31:53 +0000, a ecrit:
> > With this change we can update CPU_NUMBER assembly routine to a simpler 
> > version. 
> 
> Simpler? How so?
> 
> > El sábado 5 de agosto de 2023, Damien Zammit escribió:
> > > diff --git a/i386/i386/cpu_number.h b/i386/i386/cpu_number.h
> > > index a5658471..c00896e8 100644
> > > --- a/i386/i386/cpu_number.h
> > > +++ b/i386/i386/cpu_number.h
> > > @@ -43,6 +43,7 @@
> > >   movl    %cs:lapic, reg          ;\
> > >   movl    %cs:APIC_ID(reg), reg   ;\
> > >   shrl    $24, reg                ;\
> > > + movl    %cs:CX(cpu_id_lut, reg), reg    ;\
> 
> AIUI we still need to get the lapic address to read the apic id of the
> current processor, and then translate. I don't see how we could make
> this simpler?
> 
> Samuel
>

-- 
Enviado desde mi dispositivo Sailfish

reply via email to

[Prev in Thread] Current Thread [Next in Thread]