Changeset 5e67b98 in rtems
- Timestamp:
- 01/03/01 16:45:52 (23 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 80cc928
- Parents:
- e182c620
- Location:
- c/src/lib
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.h
re182c620 r5e67b98 613 613 614 614 615 /* ISR handler macros */ 615 /* 616 * ISR handler macros 617 */ 618 619 #define _CPU_Initialize_vectors() 616 620 617 621 /* -
c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c
re182c620 r5e67b98 59 59 ) 60 60 { 61 proc_ptr handler = (proc_ptr)ppc_spurious;62 61 int i; 63 62 #if (PPC_ABI != PPC_ABI_POWEROPEN) … … 76 75 _CPU_IRQ_info.Nest_level = &_ISR_Nest_level; 77 76 _CPU_IRQ_info.Disable_level = &_Thread_Dispatch_disable_level; 78 _CPU_IRQ_info.Vector_table = _ISR_Vector_table;77 /* fill in _CPU_IRQ_info.Vector_table later */ 79 78 #if (PPC_ABI == PPC_ABI_POWEROPEN) 80 79 _CPU_IRQ_info.Dispatch_r2 = ((unsigned32 *)_Thread_Dispatch)[1]; … … 98 97 #endif 99 98 100 if ( cpu_table->spurious_handler ) 101 handler = (proc_ptr)cpu_table->spurious_handler; 99 _CPU_Table = *cpu_table; 100 } 101 102 /* 103 * _CPU_Initialize_vectors() 104 * 105 * Support routine to initialize the RTEMS vector table after it is allocated. 106 * 107 * PowerPC Specific Information: 108 * 109 * Complete initialization since the table is now allocated. 110 */ 111 112 void _CPU_Initialize_vectors(void) 113 { 114 int i; 115 proc_ptr handler = (proc_ptr)ppc_spurious; 116 117 _CPU_IRQ_info.Vector_table = _ISR_Vector_table; 118 119 if ( _CPU_Table.spurious_handler ) 120 handler = (proc_ptr)_CPU_Table.spurious_handler; 102 121 103 122 for (i = 0; i < PPC_INTERRUPT_MAX; i++) 104 123 _ISR_Vector_table[i] = handler; 105 124 106 _CPU_Table = *cpu_table; 107 } 108 125 } 126 109 127 /*PAGE 110 128 * -
c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.h
re182c620 r5e67b98 707 707 #define CPU_STACK_ALIGNMENT (PPC_STACK_ALIGNMENT) 708 708 709 /* ISR handler macros */ 709 /* 710 * ISR handler macros 711 */ 712 713 void _CPU_Initialize_vectors(void); 710 714 711 715 /* -
c/src/lib/libcpu/powerpc/ChangeLog
re182c620 r5e67b98 1 2001-01-03 Joel Sherrill <joel@OARcorp.com> 2 3 * new_exception_processing/cpu.h, old_exception_processing/cpu.c: 4 old_exception_processing/cpu.h, Added _CPU_Initialize_vectors(). 5 In particular, spurious vector initialization had to be moved 6 on old exception processing model. 7 1 8 2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 9 -
c/src/lib/libcpu/powerpc/new_exception_processing/cpu.h
re182c620 r5e67b98 613 613 614 614 615 /* ISR handler macros */ 615 /* 616 * ISR handler macros 617 */ 618 619 #define _CPU_Initialize_vectors() 616 620 617 621 /* -
c/src/lib/libcpu/powerpc/old-exceptions/cpu.c
re182c620 r5e67b98 59 59 ) 60 60 { 61 proc_ptr handler = (proc_ptr)ppc_spurious;62 61 int i; 63 62 #if (PPC_ABI != PPC_ABI_POWEROPEN) … … 76 75 _CPU_IRQ_info.Nest_level = &_ISR_Nest_level; 77 76 _CPU_IRQ_info.Disable_level = &_Thread_Dispatch_disable_level; 78 _CPU_IRQ_info.Vector_table = _ISR_Vector_table;77 /* fill in _CPU_IRQ_info.Vector_table later */ 79 78 #if (PPC_ABI == PPC_ABI_POWEROPEN) 80 79 _CPU_IRQ_info.Dispatch_r2 = ((unsigned32 *)_Thread_Dispatch)[1]; … … 98 97 #endif 99 98 100 if ( cpu_table->spurious_handler ) 101 handler = (proc_ptr)cpu_table->spurious_handler; 99 _CPU_Table = *cpu_table; 100 } 101 102 /* 103 * _CPU_Initialize_vectors() 104 * 105 * Support routine to initialize the RTEMS vector table after it is allocated. 106 * 107 * PowerPC Specific Information: 108 * 109 * Complete initialization since the table is now allocated. 110 */ 111 112 void _CPU_Initialize_vectors(void) 113 { 114 int i; 115 proc_ptr handler = (proc_ptr)ppc_spurious; 116 117 _CPU_IRQ_info.Vector_table = _ISR_Vector_table; 118 119 if ( _CPU_Table.spurious_handler ) 120 handler = (proc_ptr)_CPU_Table.spurious_handler; 102 121 103 122 for (i = 0; i < PPC_INTERRUPT_MAX; i++) 104 123 _ISR_Vector_table[i] = handler; 105 124 106 _CPU_Table = *cpu_table; 107 } 108 125 } 126 109 127 /*PAGE 110 128 * -
c/src/lib/libcpu/powerpc/old_exception_processing/cpu.c
re182c620 r5e67b98 59 59 ) 60 60 { 61 proc_ptr handler = (proc_ptr)ppc_spurious;62 61 int i; 63 62 #if (PPC_ABI != PPC_ABI_POWEROPEN) … … 76 75 _CPU_IRQ_info.Nest_level = &_ISR_Nest_level; 77 76 _CPU_IRQ_info.Disable_level = &_Thread_Dispatch_disable_level; 78 _CPU_IRQ_info.Vector_table = _ISR_Vector_table;77 /* fill in _CPU_IRQ_info.Vector_table later */ 79 78 #if (PPC_ABI == PPC_ABI_POWEROPEN) 80 79 _CPU_IRQ_info.Dispatch_r2 = ((unsigned32 *)_Thread_Dispatch)[1]; … … 98 97 #endif 99 98 100 if ( cpu_table->spurious_handler ) 101 handler = (proc_ptr)cpu_table->spurious_handler; 99 _CPU_Table = *cpu_table; 100 } 101 102 /* 103 * _CPU_Initialize_vectors() 104 * 105 * Support routine to initialize the RTEMS vector table after it is allocated. 106 * 107 * PowerPC Specific Information: 108 * 109 * Complete initialization since the table is now allocated. 110 */ 111 112 void _CPU_Initialize_vectors(void) 113 { 114 int i; 115 proc_ptr handler = (proc_ptr)ppc_spurious; 116 117 _CPU_IRQ_info.Vector_table = _ISR_Vector_table; 118 119 if ( _CPU_Table.spurious_handler ) 120 handler = (proc_ptr)_CPU_Table.spurious_handler; 102 121 103 122 for (i = 0; i < PPC_INTERRUPT_MAX; i++) 104 123 _ISR_Vector_table[i] = handler; 105 124 106 _CPU_Table = *cpu_table; 107 } 108 125 } 126 109 127 /*PAGE 110 128 * -
c/src/lib/libcpu/powerpc/old_exception_processing/cpu.h
re182c620 r5e67b98 707 707 #define CPU_STACK_ALIGNMENT (PPC_STACK_ALIGNMENT) 708 708 709 /* ISR handler macros */ 709 /* 710 * ISR handler macros 711 */ 712 713 void _CPU_Initialize_vectors(void); 710 714 711 715 /*
Note: See TracChangeset
for help on using the changeset viewer.