mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-02 22:04:22 +08:00
m68k: Do not assign to a linker symbol
The _VBR is a symbol defined by linker scripts. You cannot change this value at runtime. The BSP initialization has to ensure that m68k_set_vbr() is only set to _VBR. Close #5210.
This commit is contained in:
@@ -420,8 +420,8 @@ extern char _VBR[];
|
||||
|
||||
#define m68k_set_vbr( _vbr ) \
|
||||
do { \
|
||||
_Assert( (uintptr_t) ( _vbr ) == (uintptr_t) _VBR ); \
|
||||
__asm__ volatile ( "movec %0,%%vbr " : : "r" (_vbr)); \
|
||||
_VBR = (void *)_vbr; \
|
||||
} while(0)
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user