RTEMS | bsps/i386: Refactor LAPIC code into shared apic.c module (!1121)
Gedare Bloom (@gedare)
gitlab at rtems.org
Mon Jun 15 22:30:34 UTC 2026
Gedare Bloom started a new discussion on bsps/i386/include/bsp/apic.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1121#note_152412
> +/**
> + * @brief Resets the Application Processor that corresponds to cpu_index.
> + *
> + * For older APIC versions, the AP does not need SIPIs to start, so only an INIT IPI is sent to reset the AP.
> + *
> + * @param cpu_index The processor to be reset.
> + */
> +void lapic_reset_ap(uint32_t cpu_index);
> +
> +#endif
> +
> +/**
> + * @brief Retrieves the Local APIC ID of the current processor.
> + * @return The Local APIC ID of the current processor.
> + */
> +static inline uint8_t lapic_get_id(void)
I would make these proper function calls, and get rid of the global variable.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1121#note_152412
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/569a719f/attachment-0001.htm>
More information about the bugs
mailing list