Changeset c03e2bc in rtems
- Timestamp:
- 02/11/09 21:45:05 (15 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- 45d107ec
- Parents:
- ef1be69
- Location:
- cpukit/score/cpu
- Files:
-
- 48 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/cpu/arm/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-09-11 Ralf Corsépius <ralf.corsepius@rtems.org> 2 8 -
cpukit/score/cpu/arm/cpu.c
ref1be69 rc03e2bc 35 35 /* _CPU_Initialize 36 36 * 37 * INPUT PARAMETERS: NONE 38 * 37 39 * This routine performs processor dependent initialization. 38 * 39 * INPUT PARAMETERS: 40 * thread_dispatch - address of ISR dispatching routine (unused) 41 */ 42 43 void _CPU_Initialize( 44 void (*thread_dispatch) /* ignored on this CPU */ 45 ) 40 */ 41 42 void _CPU_Initialize(void) 46 43 { 47 44 } -
cpukit/score/cpu/arm/rtems/score/cpu.h
ref1be69 rc03e2bc 700 700 */ 701 701 702 void _CPU_Initialize( 703 void (*thread_dispatch) 704 ); 702 void _CPU_Initialize(void); 705 703 706 704 typedef enum { -
cpukit/score/cpu/avr/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-12-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 8 -
cpukit/score/cpu/avr/cpu.c
ref1be69 rc03e2bc 23 23 * This routine performs processor dependent initialization. 24 24 * 25 * INPUT PARAMETERS: 26 * thread_dispatch - address of dispatching routine 25 * INPUT PARAMETERS: NONE 27 26 * 28 27 * NO_CPU Specific Information: … … 30 29 * XXX document implementation including references if appropriate 31 30 */ 32 33 34 void _CPU_Initialize( 35 void (*thread_dispatch) /* ignored on this CPU */ 36 ) 31 void _CPU_Initialize(void) 37 32 { 38 33 printk( "AVR CPU Initialize\n" ); 39 40 /*41 * The thread_dispatch argument is the address of the entry point42 * for the routine called at the end of an ISR once it has been43 * decided a context switch is necessary. On some compilation44 * systems it is difficult to call a high-level language routine45 * from assembly. This allows us to trick these systems.46 *47 * If you encounter this problem save the entry point in a CPU48 * dependent variable.49 */50 51 _CPU_Thread_dispatch_pointer = thread_dispatch;52 34 53 35 /* -
cpukit/score/cpu/avr/rtems/score/cpu.h
ref1be69 rc03e2bc 468 468 SCORE_EXTERN void *_CPU_Interrupt_stack_low; 469 469 SCORE_EXTERN void *_CPU_Interrupt_stack_high; 470 471 /*472 * With some compilation systems, it is difficult if not impossible to473 * call a high-level language routine from assembly language. This474 * is especially true of commercial Ada compilers and name mangling475 * C++ ones. This variable can be optionally defined by the CPU porter476 * and contains the address of the routine _Thread_Dispatch. This477 * can make it easier to invoke that routine at the end of the interrupt478 * sequence (if a dispatch is necessary).479 *480 * AVR Specific Information:481 *482 * XXX document implementation including references if appropriate483 */484 485 SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(void);486 470 487 471 /* … … 937 921 */ 938 922 939 void _CPU_Initialize( 940 void (*thread_dispatch) 941 ); 923 void _CPU_Initialize(void); 942 924 943 925 /* -
cpukit/score/cpu/bfin/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-09-11 Ralf Corsépius <ralf.corsepius@rtems.org> 2 8 -
cpukit/score/cpu/bfin/cpu.c
ref1be69 rc03e2bc 22 22 * This routine performs processor dependent initialization. 23 23 * 24 * INPUT PARAMETERS: 25 * thread_dispatch - address of dispatching routine 24 * INPUT PARAMETERS: NONE 26 25 * 27 26 * NO_CPU Specific Information: … … 38 37 extern void _CPU_Unhandled_Interrupt_handler(void); 39 38 40 void _CPU_Initialize( 41 void (*thread_dispatch) /* ignored on this CPU */ 42 ) 43 { 44 /* 45 * The thread_dispatch argument is the address of the entry point 46 * for the routine called at the end of an ISR once it has been 47 * decided a context switch is necessary. On some compilation 48 * systems it is difficult to call a high-level language routine 49 * from assembly. This allows us to trick these systems. 50 * 51 * If you encounter this problem save the entry point in a CPU 52 * dependent variable. 53 */ 54 55 /*_CPU_Thread_dispatch_pointer = thread_dispatch;*/ 56 39 void _CPU_Initialize(void) 40 { 57 41 /* 58 42 * If there is not an easy way to initialize the FP context -
cpukit/score/cpu/bfin/rtems/score/cpu.h
ref1be69 rc03e2bc 563 563 */ 564 564 SCORE_EXTERN void *_CPU_Interrupt_stack_high; 565 566 /**567 * @ingroup CPUInterrupt568 * With some compilation systems, it is difficult if not impossible to569 * call a high-level language routine from assembly language. This570 * is especially true of commercial Ada compilers and name mangling571 * C++ ones. This variable can be optionally defined by the CPU porter572 * and contains the address of the routine @ref _Thread_Dispatch. This573 * can make it easier to invoke that routine at the end of the interrupt574 * sequence (if a dispatch is necessary).575 *576 * Port Specific Information:577 *578 * XXX document implementation including references if appropriate579 */580 /* SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)();*/581 565 582 566 /* … … 1098 1082 * This routine performs CPU dependent initialization. 1099 1083 * 1100 * @param[in] cpu_table is the CPU Dependent Configuration Table 1101 * @param[in] thread_dispatch is the address of @ref _Thread_Dispatch 1102 * 1103 * Port Specific Information: 1104 * 1105 * XXX document implementation including references if appropriate 1106 */ 1107 void _CPU_Initialize( 1108 void (*thread_dispatch) 1109 ); 1084 * Port Specific Information: 1085 * 1086 * XXX document implementation including references if appropriate 1087 */ 1088 void _CPU_Initialize(void); 1110 1089 1111 1090 /** -
cpukit/score/cpu/c4x/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-09-11 Ralf Corsépius <ralf.corsepius@rtems.org> 2 8 -
cpukit/score/cpu/c4x/cpu.c
ref1be69 rc03e2bc 22 22 * This routine performs processor dependent initialization. 23 23 * 24 * INPUT PARAMETERS: 25 * thread_dispatch - address of dispatching routine 24 * INPUT PARAMETERS: NONE 26 25 * 27 26 * C4x Specific Information: … … 29 28 */ 30 29 31 void _CPU_Initialize( 32 void (*thread_dispatch) /* ignored on this CPU */ 33 ) 30 void _CPU_Initialize(void) 34 31 { 35 #if 036 /*37 * The thread_dispatch argument is the address of the entry point38 * for the routine called at the end of an ISR once it has been39 * decided a context switch is necessary. On some compilation40 * systems it is difficult to call a high-level language routine41 * from assembly. This allows us to trick these systems.42 *43 * If you encounter this problem save the entry point in a CPU44 * dependent variable.45 */46 47 _CPU_Thread_dispatch_pointer = thread_dispatch;48 #endif49 50 32 #if (CPU_HARDWARE_FP == TRUE) 51 33 /* -
cpukit/score/cpu/c4x/rtems/score/cpu.h
ref1be69 rc03e2bc 582 582 583 583 /* 584 * With some compilation systems, it is difficult if not impossible to585 * call a high-level language routine from assembly language. This586 * is especially true of commercial Ada compilers and name mangling587 * C++ ones. This variable can be optionally defined by the CPU porter588 * and contains the address of the routine _Thread_Dispatch. This589 * can make it easier to invoke that routine at the end of the interrupt590 * sequence (if a dispatch is necessary).591 *592 * C4x Specific Information:593 *594 * This port should not require this.595 */596 597 #if 0598 SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)();599 #endif600 601 /*602 584 * Nothing prevents the porter from declaring more CPU specific variables. 603 585 * … … 1079 1061 */ 1080 1062 1081 void _CPU_Initialize( 1082 void (*thread_dispatch) 1083 ); 1063 void _CPU_Initialize(void); 1084 1064 1085 1065 /* -
cpukit/score/cpu/h8300/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 8 -
cpukit/score/cpu/h8300/cpu.c
ref1be69 rc03e2bc 20 20 * This routine performs processor dependent initialization. 21 21 * 22 * INPUT PARAMETERS: 23 * thread_dispatch - address of dispatching routine 22 * INPUT PARAMETERS: NONE 24 23 */ 25 24 26 25 27 void _CPU_Initialize( 28 void (*thread_dispatch) /* ignored on this CPU */ 29 ) 26 void _CPU_Initialize(void) 30 27 { 31 /*32 * The thread_dispatch argument is the address of the entry point33 * for the routine called at the end of an ISR once it has been34 * decided a context switch is necessary. On some compilation35 * systems it is difficult to call a high-level language routine36 * from assembly. This allows us to trick these systems.37 *38 * If you encounter this problem save the entry point in a CPU39 * dependent variable.40 */41 42 _CPU_Thread_dispatch_pointer = thread_dispatch;43 44 28 /* 45 29 * If there is not an easy way to initialize the FP context -
cpukit/score/cpu/h8300/rtems/score/cpu.h
ref1be69 rc03e2bc 451 451 SCORE_EXTERN void *_CPU_Interrupt_stack_low; 452 452 SCORE_EXTERN void *_CPU_Interrupt_stack_high; 453 454 /*455 * With some compilation systems, it is difficult if not impossible to456 * call a high-level language routine from assembly language. This457 * is especially true of commercial Ada compilers and name mangling458 * C++ ones. This variable can be optionally defined by the CPU porter459 * and contains the address of the routine _Thread_Dispatch. This460 * can make it easier to invoke that routine at the end of the interrupt461 * sequence (if a dispatch is necessary).462 *463 * H8300 Specific Information:464 *465 * XXX466 */467 468 SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(void);469 453 470 454 /* … … 998 982 */ 999 983 1000 void _CPU_Initialize( 1001 void (*thread_dispatch) 1002 ); 984 void _CPU_Initialize(void); 1003 985 1004 986 /* -
cpukit/score/cpu/i386/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-09-11 Ralf Corsépius <ralf.corsepius@rtems.org> 2 8 -
cpukit/score/cpu/i386/cpu.c
ref1be69 rc03e2bc 26 26 * This routine performs processor dependent initialization. 27 27 * 28 * INPUT PARAMETERS: 29 * thread_dispatch - address of dispatching routine 28 * INPUT PARAMETERS: NONE 30 29 */ 31 30 32 33 void _CPU_Initialize( 34 void (*thread_dispatch) /* ignored on this CPU */ 35 ) 31 void _CPU_Initialize(void) 36 32 { 37 33 #if CPU_HARDWARE_FP … … 66 62 } 67 63 #endif 68 69 64 } 70 65 -
cpukit/score/cpu/i386/rtems/score/cpu.h
ref1be69 rc03e2bc 387 387 */ 388 388 389 void _CPU_Initialize( 390 void (*thread_dispatch) 391 ); 389 void _CPU_Initialize(void); 392 390 393 391 /* -
cpukit/score/cpu/lm32/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-12-05 Joel Sherrill <joel.sherrill@oarcorp.com> 2 8 -
cpukit/score/cpu/lm32/cpu.c
ref1be69 rc03e2bc 24 24 * This routine performs processor dependent initialization. 25 25 * 26 * INPUT PARAMETERS: 27 * thread_dispatch - address of dispatching routine 26 * INPUT PARAMETERS: NONE 28 27 * 29 28 * LM32 Specific Information: … … 31 30 * XXX document implementation including references if appropriate 32 31 */ 33 void _CPU_Initialize( 34 void (*thread_dispatch) /* ignored on this CPU */ 35 ) 32 33 void _CPU_Initialize(void) 36 34 { 37 /*38 * The thread_dispatch argument is the address of the entry point39 * for the routine called at the end of an ISR once it has been40 * decided a context switch is necessary. On some compilation41 * systems it is difficult to call a high-level language routine42 * from assembly. This allows us to trick these systems.43 *44 * If you encounter this problem save the entry point in a CPU45 * dependent variable.46 */47 48 #if 049 _CPU_Thread_dispatch_pointer = thread_dispatch;50 #endif51 52 35 /* 53 36 * If there is not an easy way to initialize the FP context -
cpukit/score/cpu/lm32/rtems/score/cpu.h
ref1be69 rc03e2bc 573 573 SCORE_EXTERN void *_CPU_Interrupt_stack_high; 574 574 575 /**576 * @ingroup CPUInterrupt577 * With some compilation systems, it is difficult if not impossible to578 * call a high-level language routine from assembly language. This579 * is especially true of commercial Ada compilers and name mangling580 * C++ ones. This variable can be optionally defined by the CPU porter581 * and contains the address of the routine @ref _Thread_Dispatch. This582 * can make it easier to invoke that routine at the end of the interrupt583 * sequence (if a dispatch is necessary).584 *585 * Port Specific Information:586 *587 * XXX document implementation including references if appropriate588 */589 #if 0590 SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)();591 #endif592 593 575 /* 594 576 * Nothing prevents the porter from declaring more CPU specific variables. … … 1101 1083 * This routine performs CPU dependent initialization. 1102 1084 * 1103 * @param[in] thread_dispatch is the address of @ref _Thread_Dispatch 1104 * 1105 * Port Specific Information: 1106 * 1107 * XXX document implementation including references if appropriate 1108 */ 1109 void _CPU_Initialize( 1110 void (*thread_dispatch) 1111 ); 1085 * Port Specific Information: 1086 * 1087 * XXX document implementation including references if appropriate 1088 */ 1089 void _CPU_Initialize(void); 1112 1090 1113 1091 /** -
cpukit/score/cpu/m32c/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 8 -
cpukit/score/cpu/m32c/cpu.c
ref1be69 rc03e2bc 20 20 * This routine performs processor dependent initialization. 21 21 * 22 * INPUT PARAMETERS: 23 * thread_dispatch - address of dispatching routine 22 * INPUT PARAMETERS: NONE 24 23 * 25 24 * NO_CPU Specific Information: … … 27 26 * XXX document implementation including references if appropriate 28 27 */ 29 void _CPU_Initialize( 30 void (*thread_dispatch) /* ignored on this CPU */ 31 ) 28 29 void _CPU_Initialize(void) 32 30 { 33 31 asm volatile( "ldc #__var_vects,intb" ); -
cpukit/score/cpu/m32c/rtems/score/cpu.h
ref1be69 rc03e2bc 1042 1042 * This routine performs CPU dependent initialization. 1043 1043 * 1044 * @param[in] thread_dispatch is the address of @ref _Thread_Dispatch 1045 * 1046 * Port Specific Information: 1047 * 1048 * XXX document implementation including references if appropriate 1049 */ 1050 void _CPU_Initialize( 1051 void (*thread_dispatch) 1052 ); 1044 * Port Specific Information: 1045 * 1046 * XXX document implementation including references if appropriate 1047 */ 1048 void _CPU_Initialize(void); 1053 1049 1054 1050 /** -
cpukit/score/cpu/m32r/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-10-28 Joel Sherrill <joel.sherrill@oarcorp.com> 2 8 -
cpukit/score/cpu/m32r/cpu.c
ref1be69 rc03e2bc 19 19 * This routine performs processor dependent initialization. 20 20 * 21 * INPUT PARAMETERS: 22 * thread_dispatch - address of dispatching routine 21 * INPUT PARAMETERS: NONE 23 22 * 24 23 * NO_CPU Specific Information: … … 26 25 * XXX document implementation including references if appropriate 27 26 */ 28 void _CPU_Initialize( 29 void (*thread_dispatch) /* ignored on this CPU */ 30 ) 27 28 void _CPU_Initialize(void) 31 29 { 32 30 } -
cpukit/score/cpu/m32r/rtems/score/cpu.h
ref1be69 rc03e2bc 570 570 SCORE_EXTERN void *_CPU_Interrupt_stack_high; 571 571 572 /**573 * @ingroup CPUInterrupt574 * With some compilation systems, it is difficult if not impossible to575 * call a high-level language routine from assembly language. This576 * is especially true of commercial Ada compilers and name mangling577 * C++ ones. This variable can be optionally defined by the CPU porter578 * and contains the address of the routine @ref _Thread_Dispatch. This579 * can make it easier to invoke that routine at the end of the interrupt580 * sequence (if a dispatch is necessary).581 *582 * Port Specific Information:583 *584 * XXX document implementation including references if appropriate585 */586 SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(void);587 588 572 /* 589 573 * Nothing prevents the porter from declaring more CPU specific variables. … … 1095 1079 * This routine performs CPU dependent initialization. 1096 1080 * 1097 * @param[in] thread_dispatch is the address of @ref _Thread_Dispatch 1098 * 1099 * Port Specific Information: 1100 * 1101 * XXX document implementation including references if appropriate 1102 */ 1103 void _CPU_Initialize( 1104 void (*thread_dispatch) 1105 ); 1081 * Port Specific Information: 1082 * 1083 * XXX document implementation including references if appropriate 1084 */ 1085 void _CPU_Initialize(void); 1106 1086 1107 1087 /** -
cpukit/score/cpu/m68k/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-12-17 Ralf Corsépius <ralf.corsepius@rtems.org> 2 8 -
cpukit/score/cpu/m68k/cpu.c
ref1be69 rc03e2bc 19 19 * This routine performs processor dependent initialization. 20 20 * 21 * INPUT PARAMETERS: 22 * thread_dispatch - entry pointer to thread dispatcher 21 * INPUT PARAMETERS: NONE 23 22 * 24 23 * OUTPUT PARAMETERS: NONE 25 24 */ 26 25 27 void _CPU_Initialize( 28 void (*thread_dispatch) /* ignored on this CPU */ 29 ) 26 void _CPU_Initialize(void) 30 27 { 31 28 #if ( M68K_HAS_VBR == 0 ) -
cpukit/score/cpu/m68k/rtems/score/cpu.h
ref1be69 rc03e2bc 633 633 */ 634 634 635 void _CPU_Initialize( 636 void (*thread_dispatch) 637 ); 635 void _CPU_Initialize(void); 638 636 639 637 /* -
cpukit/score/cpu/mips/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-09-11 Ralf Corsépius <ralf.corsepius@rtems.org> 2 8 -
cpukit/score/cpu/mips/cpu.c
ref1be69 rc03e2bc 71 71 * This routine performs processor dependent initialization. 72 72 * 73 * INPUT PARAMETERS:74 73 * thread_dispatch - address of dispatching routine 75 74 */ 76 void _CPU_Initialize( 77 void (*thread_dispatch) /* ignored on this CPU */ 78 ) 75 76 void _CPU_Initialize(void) 79 77 { 80 78 /* -
cpukit/score/cpu/mips/rtems/score/cpu.h
ref1be69 rc03e2bc 634 634 635 635 /* 636 * With some compilation systems, it is difficult if not impossible to637 * call a high-level language routine from assembly language. This638 * is especially true of commercial Ada compilers and name mangling639 * C++ ones. This variable can be optionally defined by the CPU porter640 * and contains the address of the routine _Thread_Dispatch. This641 * can make it easier to invoke that routine at the end of the interrupt642 * sequence (if a dispatch is necessary).643 *644 645 SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)();646 *647 * NOTE: Not needed on this port.648 */649 650 651 652 /*653 636 * Nothing prevents the porter from declaring more CPU specific variables. 654 637 */ … … 1062 1045 */ 1063 1046 1064 void _CPU_Initialize( 1065 void (*thread_dispatch) 1066 ); 1047 void _CPU_Initialize(void); 1067 1048 1068 1049 /* -
cpukit/score/cpu/nios2/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-09-11 Ralf Corsépius <ralf.corsepius@rtems.org> 2 8 -
cpukit/score/cpu/nios2/cpu.c
ref1be69 rc03e2bc 20 20 * This routine performs processor dependent initialization. 21 21 * 22 * INPUT PARAMETERS: 23 * thread_dispatch - address of dispatching routine 22 * INPUT PARAMETERS: NONE 24 23 * 25 24 * NO_CPU Specific Information: … … 28 27 */ 29 28 30 31 void _CPU_Initialize( 32 void (*thread_dispatch) /* ignored on this CPU */ 33 ) 29 void _CPU_Initialize(void) 34 30 { 35 /*36 * The thread_dispatch argument is the address of the entry point37 * for the routine called at the end of an ISR once it has been38 * decided a context switch is necessary. On some compilation39 * systems it is difficult to call a high-level language routine40 * from assembly. This allows us to trick these systems.41 *42 * If you encounter this problem save the entry point in a CPU43 * dependent variable.44 */45 46 _CPU_Thread_dispatch_pointer = thread_dispatch;47 48 31 /* 49 32 * If there is not an easy way to initialize the FP context -
cpukit/score/cpu/nios2/rtems/score/cpu.h
ref1be69 rc03e2bc 605 605 SCORE_EXTERN void *_CPU_Interrupt_stack_high; 606 606 607 /**608 * @ingroup CPUInterrupt609 * With some compilation systems, it is difficult if not impossible to610 * call a high-level language routine from assembly language. This611 * is especially true of commercial Ada compilers and name mangling612 * C++ ones. This variable can be optionally defined by the CPU porter613 * and contains the address of the routine @ref _Thread_Dispatch. This614 * can make it easier to invoke that routine at the end of the interrupt615 * sequence (if a dispatch is necessary).616 *617 * Port Specific Information:618 *619 * XXX document implementation including references if appropriate620 */621 SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)();622 623 607 /* 624 608 * Nothing prevents the porter from declaring more CPU specific variables. … … 1146 1130 * This routine performs CPU dependent initialization. 1147 1131 * 1148 * @param cpu_table (in) is the CPU Dependent Configuration Table 1149 * @param thread_dispatch (in) is the address of @ref _Thread_Dispatch 1150 * 1151 * Port Specific Information: 1152 * 1153 * XXX document implementation including references if appropriate 1154 */ 1155 void _CPU_Initialize( 1156 void (*thread_dispatch) 1157 ); 1132 * Port Specific Information: 1133 * 1134 * XXX document implementation including references if appropriate 1135 */ 1136 void _CPU_Initialize(void); 1158 1137 1159 1138 /** -
cpukit/score/cpu/no_cpu/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com> 2 8 -
cpukit/score/cpu/no_cpu/cpu.c
ref1be69 rc03e2bc 21 21 * This routine performs processor dependent initialization. 22 22 * 23 * INPUT PARAMETERS: 24 * thread_dispatch - address of dispatching routine 23 * INPUT PARAMETERS: NONE 25 24 * 26 25 * NO_CPU Specific Information: … … 28 27 * XXX document implementation including references if appropriate 29 28 */ 30 void _CPU_Initialize( 31 void (*thread_dispatch) /* ignored on this CPU */ 32 ) 29 30 void _CPU_Initialize(void) 33 31 { 34 /*35 * The thread_dispatch argument is the address of the entry point36 * for the routine called at the end of an ISR once it has been37 * decided a context switch is necessary. On some compilation38 * systems it is difficult to call a high-level language routine39 * from assembly. This allows us to trick these systems.40 *41 * If you encounter this problem save the entry point in a CPU42 * dependent variable.43 */44 45 _CPU_Thread_dispatch_pointer = thread_dispatch;46 47 32 /* 48 33 * If there is not an easy way to initialize the FP context -
cpukit/score/cpu/no_cpu/rtems/score/cpu.h
ref1be69 rc03e2bc 562 562 */ 563 563 SCORE_EXTERN void *_CPU_Interrupt_stack_high; 564 565 /**566 * @ingroup CPUInterrupt567 * With some compilation systems, it is difficult if not impossible to568 * call a high-level language routine from assembly language. This569 * is especially true of commercial Ada compilers and name mangling570 * C++ ones. This variable can be optionally defined by the CPU porter571 * and contains the address of the routine @ref _Thread_Dispatch. This572 * can make it easier to invoke that routine at the end of the interrupt573 * sequence (if a dispatch is necessary).574 *575 * Port Specific Information:576 *577 * XXX document implementation including references if appropriate578 */579 SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(void);580 564 581 565 /* … … 1082 1066 * This routine performs CPU dependent initialization. 1083 1067 * 1084 * @param[in] thread_dispatch is the address of @ref _Thread_Dispatch 1085 * 1086 * Port Specific Information: 1087 * 1088 * XXX document implementation including references if appropriate 1089 */ 1090 void _CPU_Initialize( 1091 void (*thread_dispatch) 1092 ); 1068 * Port Specific Information: 1069 * 1070 * XXX document implementation including references if appropriate 1071 */ 1072 void _CPU_Initialize(void); 1093 1073 1094 1074 /** -
cpukit/score/cpu/sh/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-09-30 Joel Sherrill <joel.sherrill@oarcorp.com> 2 8 -
cpukit/score/cpu/sh/cpu.c
ref1be69 rc03e2bc 40 40 * This routine performs processor dependent initialization. 41 41 * 42 * INPUT PARAMETERS: 43 * thread_dispatch - address of dispatching routine 44 */ 45 46 47 void _CPU_Initialize( 48 void (*thread_dispatch) /* ignored on this CPU */ 49 ) 42 * INPUT PARAMETERS: NONE 43 */ 44 45 void _CPU_Initialize(void) 50 46 { 51 47 register uint32_t level = 0; 52 53 /*54 * The thread_dispatch argument is the address of the entry point55 * for the routine called at the end of an ISR once it has been56 * decided a context switch is necessary. On some compilation57 * systems it is difficult to call a high-level language routine58 * from assembly. This allows us to trick these systems.59 *60 * If you encounter this problem save the entry point in a CPU61 * dependent variable.62 */63 64 _CPU_Thread_dispatch_pointer = thread_dispatch;65 48 66 49 /* -
cpukit/score/cpu/sh/rtems/score/cpu.h
ref1be69 rc03e2bc 428 428 SCORE_EXTERN void *_CPU_Interrupt_stack_low; 429 429 SCORE_EXTERN void *_CPU_Interrupt_stack_high; 430 431 /*432 * With some compilation systems, it is difficult if not impossible to433 * call a high-level language routine from assembly language. This434 * is especially true of commercial Ada compilers and name mangling435 * C++ ones. This variable can be optionally defined by the CPU porter436 * and contains the address of the routine _Thread_Dispatch. This437 * can make it easier to invoke that routine at the end of the interrupt438 * sequence (if a dispatch is necessary).439 */440 441 SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(void);442 430 443 431 /* … … 826 814 */ 827 815 828 void _CPU_Initialize( 829 void (*thread_dispatch) 830 ); 816 void _CPU_Initialize(void); 831 817 832 818 /* -
cpukit/score/cpu/sparc/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-09-11 Ralf Corsépius <ralf.corsepius@rtems.org> 2 8 -
cpukit/score/cpu/sparc/cpu.c
ref1be69 rc03e2bc 39 39 * This routine performs processor dependent initialization. 40 40 * 41 * Input Parameters: 42 * thread_dispatch - address of dispatching routine 41 * INPUT PARAMETERS: NONE 43 42 * 44 43 * Output Parameters: NONE … … 48 47 */ 49 48 50 void _CPU_Initialize( 51 void (*thread_dispatch) /* ignored on this CPU */ 52 ) 49 void _CPU_Initialize(void) 53 50 { 54 51 #if (SPARC_HAS_FPU == 1) -
cpukit/score/cpu/sparc/rtems/score/cpu.h
ref1be69 rc03e2bc 884 884 */ 885 885 886 void _CPU_Initialize( 887 void (*thread_dispatch) 888 ); 886 void _CPU_Initialize(void); 889 887 890 888 /* -
cpukit/score/cpu/unix/ChangeLog
ref1be69 rc03e2bc 1 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and 4 passing address of _Thread_Dispatch to _CPU_Initialize. Clean up 5 comments. 6 1 7 2008-12-01 Joel Sherrill <joel.sherrill@OARcorp.com> 2 8 -
cpukit/score/cpu/unix/cpu.c
ref1be69 rc03e2bc 277 277 * This routine performs processor dependent initialization. 278 278 * 279 * INPUT PARAMETERS: 280 * thread_dispatch - address of dispatching routine 281 */ 282 283 284 void _CPU_Initialize( 285 void (*thread_dispatch) /* ignored on this CPU */ 286 ) 279 * INPUT PARAMETERS: NONE 280 */ 281 282 void _CPU_Initialize(void) 287 283 { 288 284 /* … … 294 290 if ( sizeof(Context_Control_overlay) > sizeof(Context_Control) ) 295 291 _CPU_Fatal_error(0x100 + 1); 296 297 /*298 * The thread_dispatch argument is the address of the entry point299 * for the routine called at the end of an ISR once it has been300 * decided a context switch is necessary. On some compilation301 * systems it is difficult to call a high-level language routine302 * from assembly. This allows us to trick these systems.303 *304 * If you encounter this problem save the entry point in a CPU305 * dependent variable.306 */307 308 _CPU_Thread_dispatch_pointer = thread_dispatch;309 292 310 293 /* -
cpukit/score/cpu/unix/rtems/score/cpu.h
ref1be69 rc03e2bc 530 530 531 531 /* 532 * With some compilation systems, it is difficult if not impossible to533 * call a high-level language routine from assembly language. This534 * is especially true of commercial Ada compilers and name mangling535 * C++ ones. This variable can be optionally defined by the CPU porter536 * and contains the address of the routine _Thread_Dispatch. This537 * can make it easier to invoke that routine at the end of the interrupt538 * sequence (if a dispatch is necessary).539 */540 541 SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(void);542 543 /*544 532 * Nothing prevents the porter from declaring more CPU specific variables. 545 533 */ … … 876 864 */ 877 865 878 void _CPU_Initialize( 879 void (*thread_dispatch) 880 ); 866 void _CPU_Initialize(void); 881 867 882 868 /*
Note: See TracChangeset
for help on using the changeset viewer.