[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-bug
Subject:    Hurd SMP: APIC parser news
From:       Almudena Garcia <liberamenso10000 () gmail ! com>
Date:       2020-05-16 0:12:23
Message-ID: CA+vQsMgtR69OVaHct+hg1ejb580sCWus1MT-PwAxWcQpseUdOQ () mail ! gmail ! com
[Download RAW message or body]

Hi, I'm AlmuHS, the Hurd SMP developer

Last week, we had talking in IRC about how to parse IRQs from MADT table. I
write you to notice the progress in this topic.

At first, I've added a new case for IRQ Override Entry in the APIC parser
code, and finished the most of IRQ Override parsing from MADT table. You
can check the progress here:
https://github.com/AlmuHS/GNUMach_SMP/blob/smp-new/i386/i386at/acpi_parse_apic.c#L560-L564

Some things, as the initialization to a defined value, is missing yet. I
added this defines, but I'm not sure about how to use them in the code.

#define APIC_IRQ_OVERRIDE_ACTIVE_LOW 2
#define APIC_IRQ_OVERRIDE_LEVEL_TRIGGERED 8

At second thing, I've also did other code modifications: to improve the
code style, I've moved the APIC structures to a sources file, and I've
implemented a set of functions to manipulate these following an OOP-like
model.
Now, all operations and access to APIC structures must be done using these
functions.

You can see this new "library" here:
https://github.com/AlmuHS/GNUMach_SMP/blob/smp-new/i386/i386/apic.c

I've also done some little changes in APIC header, renaming some structures
to better names
https://github.com/AlmuHS/GNUMach_SMP/blob/smp-new/i386/i386/apic.h

You can see all the changes in the commits log in my GitHub repository

If the development goes well, the first patch can be ready in a weeks.
https://github.com/AlmuHS/GNUMach_SMP/commits/smp-new

Check my code and take me your opinions about this.
Thanks, and I wait your response

[Attachment #3 (text/html)]

<div dir="ltr"><div>Hi, I&#39;m AlmuHS, the Hurd SMP \
developer</div><div><br></div><div>Last week, we had talking in IRC about how to \
parse IRQs from MADT table. I write you to notice the progress in this \
topic.</div><div><br></div><div>At first, I&#39;ve added a new case for IRQ Override \
Entry in the APIC parser code, and finished the most of IRQ Override parsing from \
MADT table. You can check the progress here:</div><div><a \
href="https://github.com/AlmuHS/GNUMach_SMP/blob/smp-new/i386/i386at/acpi_parse_apic.c \
#L560-L564">https://github.com/AlmuHS/GNUMach_SMP/blob/smp-new/i386/i386at/acpi_parse_apic.c#L560-L564</a></div><div><br></div><div>Some \
things, as the initialization to a defined value, is missing yet. I added this \
defines, but I&#39;m not sure about how to use them in the \
code.<br></div><div><br></div><div>#define APIC_IRQ_OVERRIDE_ACTIVE_LOW 2<br>#define \
APIC_IRQ_OVERRIDE_LEVEL_TRIGGERED 8</div><div><br></div><div>At second thing, \
I&#39;ve also did other code modifications: to improve the code style, I&#39;ve moved \
the APIC structures to a sources file, and I&#39;ve implemented a set of functions to \
manipulate these following an OOP-like model.<br></div><div>Now, all operations and \
access to APIC structures must be done using these \
functions.<br></div><div><br></div><div>You can see this new &quot;library&quot; \
here:</div><div><a href="https://github.com/AlmuHS/GNUMach_SMP/blob/smp-new/i386/i386/ \
apic.c">https://github.com/AlmuHS/GNUMach_SMP/blob/smp-new/i386/i386/apic.c</a></div><div><br></div><div>I&#39;ve \
also done some little changes in APIC header, renaming some structures to better \
names<br></div><div><a \
href="https://github.com/AlmuHS/GNUMach_SMP/blob/smp-new/i386/i386/apic.h">https://git \
hub.com/AlmuHS/GNUMach_SMP/blob/smp-new/i386/i386/apic.h</a></div><div><br></div><div>You \
can see all the changes in the commits log in my GitHub \
repository<br></div><div><br></div><div>If the development goes well, the first patch \
can be ready in a weeks.<br></div><div><a \
href="https://github.com/AlmuHS/GNUMach_SMP/commits/smp-new">https://github.com/AlmuHS/GNUMach_SMP/commits/smp-new</a></div><div><br></div><div>Check \
my code and take me your opinions about this.</div><div>Thanks, and I wait your \
response<br></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic