diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-04-22 16:44:04 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-04-22 16:44:04 +0000 |
commit | 96981e3ae65dd3621f92c8c93fb9c970ddd07509 (patch) | |
tree | 86e8385b104a821c77920420f6dd084d4ca72945 /c/src/exec/score/cpu | |
parent | added stack allocation fields to the cpu table (diff) | |
download | rtems-96981e3ae65dd3621f92c8c93fb9c970ddd07509.tar.bz2 |
added stack allocation fields to the cpu table
Diffstat (limited to 'c/src/exec/score/cpu')
-rw-r--r-- | c/src/exec/score/cpu/i960/cpu.h | 4 | ||||
-rw-r--r-- | c/src/exec/score/cpu/no_cpu/cpu.h | 10 | ||||
-rw-r--r-- | c/src/exec/score/cpu/powerpc/cpu.h | 10 | ||||
-rw-r--r-- | c/src/exec/score/cpu/sparc/cpu.h | 10 |
4 files changed, 16 insertions, 18 deletions
diff --git a/c/src/exec/score/cpu/i960/cpu.h b/c/src/exec/score/cpu/i960/cpu.h index 2ed819afb6..683d84659b 100644 --- a/c/src/exec/score/cpu/i960/cpu.h +++ b/c/src/exec/score/cpu/i960/cpu.h @@ -146,6 +146,10 @@ typedef struct { boolean do_zero_of_workspace; unsigned32 interrupt_stack_size; unsigned32 extra_mpci_receive_server_stack; + void * (*stack_allocate_hook)( unsigned32 ); + void (*stack_free_hook)( void* ); + /* end of fields required on all CPUs */ + #if defined(__i960CA__) || defined(__i960_CA__) || defined(__i960CA) i960ca_PRCB *Prcb; #endif diff --git a/c/src/exec/score/cpu/no_cpu/cpu.h b/c/src/exec/score/cpu/no_cpu/cpu.h index 0247e49f5f..7e80e3c018 100644 --- a/c/src/exec/score/cpu/no_cpu/cpu.h +++ b/c/src/exec/score/cpu/no_cpu/cpu.h @@ -328,12 +328,6 @@ typedef struct { /* * The following table contains the information required to configure * the XXX processor specific parameters. - * - * NOTE: The interrupt_stack_size field is required if - * CPU_ALLOCATE_INTERRUPT_STACK is defined as TRUE. - * - * The pretasking_hook, predriver_hook, and postdriver_hook, - * and the do_zero_of_workspace fields are required on ALL CPUs. */ typedef struct { @@ -344,6 +338,10 @@ typedef struct { boolean do_zero_of_workspace; unsigned32 interrupt_stack_size; unsigned32 extra_mpci_receive_server_stack; + void * (*stack_allocate_hook)( unsigned32 ); + void (*stack_free_hook)( void* ); + /* end of fields required on all CPUs */ + unsigned32 some_other_cpu_dependent_info; } rtems_cpu_table; diff --git a/c/src/exec/score/cpu/powerpc/cpu.h b/c/src/exec/score/cpu/powerpc/cpu.h index e55b2f9e75..ce365a04ec 100644 --- a/c/src/exec/score/cpu/powerpc/cpu.h +++ b/c/src/exec/score/cpu/powerpc/cpu.h @@ -426,12 +426,6 @@ typedef struct CPU_Interrupt_frame { /* * The following table contains the information required to configure * the PowerPC processor specific parameters. - * - * NOTE: The interrupt_stack_size field is required if - * CPU_ALLOCATE_INTERRUPT_STACK is defined as TRUE. - * - * The pretasking_hook, predriver_hook, and postdriver_hook, - * and the do_zero_of_workspace fields are required on ALL CPUs. */ typedef struct { @@ -442,6 +436,10 @@ typedef struct { boolean do_zero_of_workspace; unsigned32 interrupt_stack_size; unsigned32 extra_mpci_receive_server_stack; + void * (*stack_allocate_hook)( unsigned32 ); + void (*stack_free_hook)( void* ); + /* end of fields required on all CPUs */ + unsigned32 clicks_per_usec; /* Timer clicks per microsecond */ unsigned32 serial_per_sec; /* Serial clocks per second */ boolean serial_external_clock; diff --git a/c/src/exec/score/cpu/sparc/cpu.h b/c/src/exec/score/cpu/sparc/cpu.h index 5c0a9a2ca2..84280c94bf 100644 --- a/c/src/exec/score/cpu/sparc/cpu.h +++ b/c/src/exec/score/cpu/sparc/cpu.h @@ -492,12 +492,6 @@ typedef struct { /* * The following table contains the information required to configure * the processor specific parameters. - * - * NOTE: The interrupt_stack_size field is required if - * CPU_ALLOCATE_INTERRUPT_STACK is defined as TRUE. - * - * The pretasking_hook, predriver_hook, and postdriver_hook, - * and the do_zero_of_workspace fields are required on ALL CPUs. */ typedef struct { @@ -508,6 +502,10 @@ typedef struct { boolean do_zero_of_workspace; unsigned32 interrupt_stack_size; unsigned32 extra_mpci_receive_server_stack; + void * (*stack_allocate_hook)( unsigned32 ); + void (*stack_free_hook)( void* ); + /* end of fields required on all CPUs */ + } rtems_cpu_table; /* |