Modified to have correct address for vector table on multiple models.

This commit is contained in:
Joel Sherrill
1997-08-27 20:31:34 +00:00
parent 2a1a547092
commit 49c2f58948
2 changed files with 10 additions and 0 deletions

View File

@@ -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 */

View File

@@ -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 );