RTEMS | bsps/shared/start/setvec.c: Fix warning across multiple BSPs (!432)

Kinsey Moore (@opticron) gitlab at rtems.org
Mon Mar 3 21:46:04 UTC 2025




Kinsey Moore commented on a discussion on cpukit/score/cpu/m68k/include/rtems/score/m68k.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/432#note_120500

 >    __asm__ volatile ( "movec   %0,%%vbr " : : "r" (vbr))
 >  
 >  #elif ( defined(__mcoldfire__) )
 > -extern void*                     _VBR;
 > -#define m68k_get_vbr( _vbr ) _vbr = &_VBR
 > +extern char _VBR[];
 > +#define m68k_get_vbr( _vbr ) _vbr = (void *)&_VBR

The replacement appears to be same level of indirection as what it's replacing and allows the pointer at _VBR to be replaced.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/432#note_120500
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/20250303/847b0c0b/attachment-0001.htm>


More information about the bugs mailing list