RTEMS | bsps/i386: Standardize APIC register definitions with x86_64 BSP (!1111)

Gedare Bloom (@gedare) gitlab at rtems.org
Thu Mar 12 23:01:55 UTC 2026




Gedare Bloom started a new discussion on bsps/i386/pc386/start/smp-imps.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1111#note_145143

 >    /*
 >     *  Setup primary CPU.
 >     */
 > -  apicid = IMPS_LAPIC_READ(LAPIC_SPIV);
 > -  IMPS_LAPIC_WRITE(LAPIC_SPIV, apicid|LAPIC_SPIV_ENABLE_APIC);
 > -  apicid = APIC_ID(IMPS_LAPIC_READ(LAPIC_ID));
 > +  apicid = amd64_lapic_base[LAPIC_REGISTER_SPURIOUS];
 > +  amd64_lapic_base[LAPIC_REGISTER_SPURIOUS] =
 > +  apicid | LAPIC_SPURIOUS_ENABLE;

This is poorly formatted.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1111#note_145143
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/20260312/016b9091/attachment-0001.htm>


More information about the bugs mailing list