RTEMS | bsps/i386: Refactor LAPIC code into shared apic.c module (!1121)
Gedare Bloom (@gedare)
gitlab at rtems.org
Fri Jun 26 19:22:25 UTC 2026
Gedare Bloom commented on a discussion on bsps/i386/shared/irq/apic.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1121#note_153360
> +
> +static void wait_ipi(void)
> +{
> + int to, send_status;
> + to = 0;
> + do {
> + UDELAY(100);
> + send_status = i386_lapic_base[LAPIC_REGISTER_ICR_LOW] & LAPIC_ICR_STATUS_PEND;
> + } while (send_status && (to++ < 1000));
> +}
> +
> +void
> +lapic_clear_errors(void)
> +{
> + i386_lapic_base[LAPIC_REGISTER_ESR] = 0;
> + (void) i386_lapic_base[LAPIC_REGISTER_ESR];
check the generated assembly, does this actually cause a read?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1121#note_153360
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-azqfjanso84410wwbfj9knvur-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260626/9ae15aa9/attachment-0001.htm>
More information about the bugs
mailing list