RTEMS | m68k/uC5282/bspstart.c: Cleanup of some bsp start code & GCC Warning Fixes (!474)

Joel Sherrill (@joel) gitlab at rtems.org
Thu Jun 5 02:39:48 UTC 2025




Joel Sherrill commented on a discussion on bsps/m68k/uC5282/start/bspstart.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/474#note_123142

 >  
 >      rtems_interrupt_disable(level);
 >      if (reent++) bsp_sysReset(0);
 >      {
 > -    int *p = &pc;
 > -    int info = p[-1];
 > -    int pc = p[0];
 > -    int format = (info >> 28) & 0xF;
 > -    int faultStatus = ((info >> 24) & 0xC) | ((info >> 16) & 0x3);
 > -    int vector = (info >> 18) & 0xFF;
 > -    int statusRegister = info & 0xFFFF;
 > -    int *fp;
 > -
 > -    printk("\n\nPC:%x  SR:%x  VEC:%x  FORMAT:%x  STATUS:%x\n", pc,
 > +        uintptr_t tmp = (uintptr_t)¶m;
 > +        tmp -= 2 * sizeof(int);

Thanks

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/474#note_123142
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/20250605/80c9ef97/attachment-0001.htm>


More information about the bugs mailing list