2007-05-22 Joel Sherrill <joel.sherrill@OARcorp.com>

* score/cpu/arm/cpu.c, score/cpu/avr/cpu.c, score/cpu/bfin/cpu.c,
	score/cpu/c4x/cpu.c, score/cpu/h8300/cpu.c, score/cpu/i386/cpu.c,
	score/cpu/m68k/cpu.c, score/cpu/mips/cpu.c, score/cpu/nios2/cpu.c,
	score/cpu/no_cpu/cpu.c, score/cpu/sh/cpu.c, score/cpu/sparc/cpu.c,
	cpukit/sapi/src/exinit.c: Move copying of CPU Table to shared
	executive initialization.
This commit is contained in:
Joel Sherrill
2007-05-22 20:57:34 +00:00
parent 804e3bd005
commit 60f016f59d
14 changed files with 16 additions and 27 deletions

View File

@@ -1,3 +1,12 @@
2007-05-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/cpu/arm/cpu.c, score/cpu/avr/cpu.c, score/cpu/bfin/cpu.c,
score/cpu/c4x/cpu.c, score/cpu/h8300/cpu.c, score/cpu/i386/cpu.c,
score/cpu/m68k/cpu.c, score/cpu/mips/cpu.c, score/cpu/nios2/cpu.c,
score/cpu/no_cpu/cpu.c, score/cpu/sh/cpu.c, score/cpu/sparc/cpu.c,
cpukit/sapi/src/exinit.c: Move copying of CPU Table to shared
executive initialization.
2007-05-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/corerwlockrelease.c: Do not dereference NULL.

View File

@@ -100,6 +100,12 @@ rtems_interrupt_level rtems_initialize_executive_early(
_System_state_Handler_initialization( FALSE );
#endif
/*
* Grab our own copy of the user's CPU table.
*/
_CPU_Table = *cpu_table;
/*
* Provided just for user convenience.
*/

View File

@@ -37,7 +37,6 @@ void _CPU_Initialize(
void (*thread_dispatch) /* ignored on this CPU */
)
{
_CPU_Table = *cpu_table;
}
/*

View File

@@ -56,8 +56,6 @@ void _CPU_Initialize(
*/
/* FP context initialization support goes here */
_CPU_Table = *cpu_table;
}
/*PAGE

View File

@@ -57,8 +57,6 @@ void _CPU_Initialize(
*/
/* FP context initialization support goes here */
_CPU_Table = *cpu_table;
}
/*PAGE

View File

@@ -59,8 +59,6 @@ void _CPU_Initialize(
/* FP context initialization support goes here */
#endif
_CPU_Table = *cpu_table;
}
/*PAGE

View File

@@ -51,8 +51,6 @@ void _CPU_Initialize(
*/
/* FP context initialization support goes here */
_CPU_Table = *cpu_table;
}
/*PAGE

View File

@@ -41,8 +41,6 @@ void _CPU_Initialize(
register Context_Control_fp *fp_context;
#endif
_CPU_Table = *cpu_table;
/*
* The following code saves a NULL i387 context which is given
* to each task at start and restart time. The following code

View File

@@ -44,8 +44,6 @@ void _CPU_Initialize(
_CPU_ISR_jump_table[slot].isr_handler = (uint32_t ) 0xDEADDEAD;
}
#endif /* M68K_HAS_VBR */
_CPU_Table = *cpu_table;
}
/*PAGE

View File

@@ -94,7 +94,6 @@ void _CPU_Initialize(
control register to prevent underflow and
inexact exceptions */
#endif
_CPU_Table = *cpu_table;
}
/*PAGE

View File

@@ -55,8 +55,6 @@ void _CPU_Initialize(
*/
/* FP context initialization support goes here */
_CPU_Table = *cpu_table;
}
/*PAGE

View File

@@ -56,8 +56,6 @@ void _CPU_Initialize(
*/
/* FP context initialization support goes here */
_CPU_Table = *cpu_table;
}
/*PAGE

View File

@@ -82,8 +82,6 @@ void _CPU_Initialize(
_CPU_Null_fp_context.fpscr = SH4_FPSCR_DN | SH4_FPSCR_RM;
#endif
_CPU_Table = *cpu_table;
/* enable interrupts */
_CPU_ISR_Set_level( level ) ;
}

View File

@@ -66,12 +66,6 @@ void _CPU_Initialize(
_CPU_Context_save_fp( &pointer );
#endif
/*
* Grab our own copy of the user's CPU table.
*/
_CPU_Table = *cpu_table;
/*
* Since no tasks have been created yet and no interrupts have occurred,
* there is no way that the currently executing thread can have an