From c54152a26c3226356a706515b4e4d231e02c47e2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 25 Jan 2001 18:45:59 +0000 Subject: 2001-01-25 Joel Sherrill * cpu.c, rtems/score/cpu.h: Bug report from Peter Mueller because of not correcting for the ISR vector table now being allocated from the workspace. --- c/src/exec/score/cpu/unix/ChangeLog | 6 ++++++ c/src/exec/score/cpu/unix/cpu.c | 14 +++++++++----- c/src/exec/score/cpu/unix/rtems/score/cpu.h | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) (limited to 'c') diff --git a/c/src/exec/score/cpu/unix/ChangeLog b/c/src/exec/score/cpu/unix/ChangeLog index b61fcfcb4e..dc1e64606e 100644 --- a/c/src/exec/score/cpu/unix/ChangeLog +++ b/c/src/exec/score/cpu/unix/ChangeLog @@ -1,3 +1,9 @@ +2001-01-25 Joel Sherrill + + * cpu.c, rtems/score/cpu.h: Bug report from Peter Mueller + because of not correcting for the ISR + vector table now being allocated from the workspace. + 2001-01-03 Joel Sherrill * rtems/score/cpu.h: Added _CPU_Initialize_vectors(). diff --git a/c/src/exec/score/cpu/unix/cpu.c b/c/src/exec/score/cpu/unix/cpu.c index 2bc7e4ece0..f7b6a1464f 100644 --- a/c/src/exec/score/cpu/unix/cpu.c +++ b/c/src/exec/score/cpu/unix/cpu.c @@ -73,12 +73,18 @@ int cpu_number; /*PAGE * - * _CPU_ISR_From_CPU_Init + * _CPU_Initialize_vectors() + * + * Support routine to initialize the RTEMS vector table after it is allocated. + * + * UNIX Specific Information: + * + * Complete initialization since the table is now allocated. */ - + sigset_t posix_empty_mask; -void _CPU_ISR_From_CPU_Init() +void _CPU_Initialize_vectors(void) { unsigned32 i; proc_ptr old_handler; @@ -309,8 +315,6 @@ void _CPU_Initialize( _CPU_Table = *cpu_table; - _CPU_ISR_From_CPU_Init(); - _CPU_Sync_io_Init(); _CPU_Context_From_CPU_Init(); diff --git a/c/src/exec/score/cpu/unix/rtems/score/cpu.h b/c/src/exec/score/cpu/unix/rtems/score/cpu.h index 0ec126b404..e555877b4a 100644 --- a/c/src/exec/score/cpu/unix/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/unix/rtems/score/cpu.h @@ -678,7 +678,7 @@ SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(); * Support routine to initialize the RTEMS vector table after it is allocated. */ -#define _CPU_Initialize_vectors() +void _CPU_Initialize_vectors(void); /* * Disable all interrupts for an RTEMS critical section. The previous -- cgit v1.2.3