4.115
Line | |
---|
1 | /* |
---|
2 | * This routine returns control to 162Bug. |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * COPYRIGHT (c) 1989-2014. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.org/license/LICENSE. |
---|
12 | * |
---|
13 | * Modifications of respective RTEMS file: COPYRIGHT (c) 1994. |
---|
14 | * EISCAT Scientific Association. M.Savitski |
---|
15 | * |
---|
16 | * This material is a part of the MVME162 Board Support Package |
---|
17 | * for the RTEMS executive. Its licensing policies are those of the |
---|
18 | * RTEMS above. |
---|
19 | */ |
---|
20 | |
---|
21 | #include <bsp.h> |
---|
22 | #include <bsp/bootcard.h> |
---|
23 | #include <rtems/zilog/z8036.h> |
---|
24 | #include <page_table.h> |
---|
25 | |
---|
26 | static rtems_isr bsp_return_to_monitor_trap( |
---|
27 | rtems_vector_number vector |
---|
28 | ) |
---|
29 | { |
---|
30 | page_table_teardown(); |
---|
31 | |
---|
32 | lcsr->intr_ena = 0; /* disable interrupts */ |
---|
33 | m68k_set_vbr(MOT_162BUG_VEC_ADDRESS); /* restore 162Bug vectors */ |
---|
34 | |
---|
35 | __asm__ volatile( "trap #15" ); /* trap to 162Bug */ |
---|
36 | __asm__ volatile( ".short 0x63" ); /* return to 162Bug (.RETURN) */ |
---|
37 | } |
---|
38 | |
---|
39 | void bsp_fatal_extension( |
---|
40 | rtems_fatal_source source, |
---|
41 | bool is_internal, |
---|
42 | rtems_fatal_code error |
---|
43 | ) |
---|
44 | { |
---|
45 | M68Kvec[ 45 ] = bsp_return_to_monitor_trap; /* install handler */ |
---|
46 | __asm__ volatile( "trap #13" ); /* ensures SUPV mode */ |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.