RTEMS | bsps/i386: Refactor LAPIC code into shared apic.c module (!1121)

Gedare Bloom (@gedare) gitlab at rtems.org
Mon Jun 15 22:30:45 UTC 2026




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

 >  
 >  uint32_t _CPU_SMP_Get_current_processor( void )
 >  {
 > -  return imps_apic_cpu_map[APIC_ID(IMPS_LAPIC_READ(LAPIC_ID))];
 > +  return i386_lapic_to_cpu_map[lapic_get_id()];

Can we make this a function call instead of a global variable access?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1121#note_152415
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/d4bc5a9c/attachment-0001.htm>


More information about the bugs mailing list