forked from Imagelibrary/rtems
Rewrote to avoid references to C symbols from assembly. This entirely
circumvents the problem of leading underscores.
This commit is contained in:
@@ -20,11 +20,15 @@
|
|||||||
|
|
||||||
void bsp_cleanup( void )
|
void bsp_cleanup( void )
|
||||||
{
|
{
|
||||||
asm volatile( "mov 0,g0; \
|
extern void start( void );
|
||||||
fmark ; \
|
|
||||||
syncf ; \
|
register volatile void *start_addr = 0;
|
||||||
.word 0xfeedface ; \
|
|
||||||
bx start" : : );
|
asm volatile( "mov 0,g0;"
|
||||||
|
"fmark ;"
|
||||||
|
"syncf ;"
|
||||||
|
".word 0xfeedface ; "
|
||||||
|
"bx (%0)" : "=r" (start_addr) : "0" (start_addr) );
|
||||||
/* The constant 0xfeedface is a magic word for break which
|
/* The constant 0xfeedface is a magic word for break which
|
||||||
* is defined by NINDY. The branch extended restarts the
|
* is defined by NINDY. The branch extended restarts the
|
||||||
* application if the user types "go".
|
* application if the user types "go".
|
||||||
|
|||||||
Reference in New Issue
Block a user