RTEMS | bsps/i386: Refactor LAPIC code into shared apic.c module (!1121)
Gedare Bloom (@gedare)
gitlab at rtems.org
Mon Jun 15 22:30:52 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_152418
> +uint8_t i386_cpu_to_lapic_map[APIC_BCAST_ID];
> +static uint32_t lapic_count = 0;
> +#endif
> +
> +void lapic_enable(void)
> +{
> + /*
> + * Enable the Local APIC by setting the spurious interrupt vector register.
> + */
> + uint32_t value = i386_lapic_base[LAPIC_REGISTER_SPURIOUS];
> + value |= LAPIC_SPURIOUS_ENABLE;
> + i386_lapic_base[LAPIC_REGISTER_SPURIOUS] = value;
> +}
> +
> +static void UDELAY(int x)
> +{ int _i = x;
keep the style internally consistent.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1121#note_152418
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/1f07638a/attachment.htm>
More information about the bugs
mailing list