RTEMS | bsps/i386: Refactor LAPIC code into shared apic.c module (!1121)

Gedare Bloom (@gedare) gitlab at rtems.org
Mon Jun 15 22:30:48 UTC 2026




Gedare Bloom started a new discussion on bsps/i386/shared/irq/apic.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1121#note_152417

 > +#include <bsp/apic.h>
 > +
 > +volatile uint32_t* i386_lapic_base;
 > +extern void _pc386_delay(void);
 > +
 > +#ifdef RTEMS_SMP
 > +/* Maps the processor index to the Local APIC ID */
 > +uint8_t i386_lapic_to_cpu_map[APIC_BCAST_ID];
 > +uint8_t i386_cpu_to_lapic_map[APIC_BCAST_ID];
 > +static uint32_t lapic_count = 0;

same for these, if we could make them `static` to this file, and expose them through function calls, it would improve the code safety and modularity (encapsulation)

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1121#note_152417
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260615/0831b0ed/attachment-0001.htm>


More information about the bugs mailing list