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:
Sebastian Huber
2025-08-14 07:02:01 +02:00
parent c8e5f206b4
commit 8fd021bbb3
@@ -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