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

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




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

 >  
 >  uint32_t _CPU_SMP_Get_current_processor( void )
 >  {
 > -  return imps_apic_cpu_map[APIC_ID(IMPS_LAPIC_READ(LAPIC_ID))];
 > +  return imps_apic_cpu_map[
 > +    amd64_lapic_base[LAPIC_REGISTER_ID] >> 24

the naming of `amd64_` being called from the `i386` port is unusual. I think it needs to be reconsidered.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1111#note_145144
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/e7c31930/attachment.htm>


More information about the bugs mailing list