Changeset 38ffa0c in rtems for c/src/exec/score/cpu/m68k/cpu.c
- Timestamp:
- 09/19/95 18:32:18 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 84ee59f5
- Parents:
- 3652ad35
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/score/cpu/m68k/cpu.c
r3652ad35 r38ffa0c 1 1 /* 2 * Motorola MC68 020Dependent Source2 * Motorola MC68xxx Dependent Source 3 3 * 4 4 * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. … … 33 33 ) 34 34 { 35 36 35 _CPU_Table = *cpu_table; 37 38 36 } 39 37 … … 67 65 m68k_get_vbr( interrupt_table ); 68 66 67 #if ( M68K_HAS_VBR == 1) 69 68 *old_handler = interrupt_table[ vector ]; 70 71 69 interrupt_table[ vector ] = new_handler; 70 #else 71 *old_handler = *(proc_ptr *)( (int)interrupt_table+ (int)vector*6-10); 72 *(proc_ptr *)( (int)interrupt_table+ (int)vector*6-10) = new_handler; 73 #endif /* M68K_HAS_VBR */ 72 74 } 73 75 … … 121 123 #if ( M68K_HAS_BFFFO != 1 ) 122 124 /* 123 * Returns log2(x) 0<x<256125 * Returns table for duplication of the BFFFO instruction (16 bits only) 124 126 */ 125 const unsigned char __ log2table[256] = {126 0, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0,127 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0,128 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0,129 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0,130 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0,131 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0,132 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0,133 4, 0, 1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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 140 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 142 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 143 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 142 144 }; 143 145 #endif
Note: See TracChangeset
for help on using the changeset viewer.