forked from Imagelibrary/rtems
Modified to have correct address for vector table on multiple models.
This commit is contained in:
@@ -32,7 +32,12 @@ void bsp_return_to_monitor_trap()
|
||||
page_table_teardown();
|
||||
|
||||
lcsr->intr_ena = 0; /* disable interrupts */
|
||||
#if defined(mvme162lx)
|
||||
m68k_set_vbr(0x00000000); /* restore 162Bug vectors */
|
||||
#else
|
||||
m68k_set_vbr(0xFFE00000); /* restore 162Bug vectors */
|
||||
#endif
|
||||
|
||||
asm volatile( "trap #15" ); /* trap to 162Bug */
|
||||
asm volatile( ".short 0x63" ); /* return to 162Bug (.RETURN) */
|
||||
/* restart program */
|
||||
|
||||
@@ -164,9 +164,14 @@ int main(
|
||||
|
||||
/*
|
||||
* 162Bug Vectors are at 0xFFE00000
|
||||
* 162Bug Vectors on LX are at 0x00000000
|
||||
*/
|
||||
|
||||
#if defined(mvme162lx)
|
||||
monitors_vector_table = (m68k_isr_entry *)0x00000000;
|
||||
#else
|
||||
monitors_vector_table = (m68k_isr_entry *)0xFFE00000;
|
||||
#endif
|
||||
|
||||
m68k_set_vbr( monitors_vector_table );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user