From 2f831ac1feb4c9a318000ab34f596bc676953770 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 17 May 1999 22:16:52 +0000 Subject: Moved _Entry_Table to its own file to avoid having every RTEMS directive pulled in. --- c/src/exec/sapi/include/rtems/sptables.h | 94 --------------------------- c/src/exec/sapi/src/Makefile.in | 2 +- c/src/exec/sapi/src/entrytable.c | 106 +++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 95 deletions(-) create mode 100644 c/src/exec/sapi/src/entrytable.c diff --git a/c/src/exec/sapi/include/rtems/sptables.h b/c/src/exec/sapi/include/rtems/sptables.h index 9a333b62f8..6d676076ff 100644 --- a/c/src/exec/sapi/include/rtems/sptables.h +++ b/c/src/exec/sapi/include/rtems/sptables.h @@ -69,100 +69,6 @@ const char _RTEMS_version[] = "RTEMS RELEASE " RTEMS_VERSION "(" CPU_NAME "/" CPU_MODEL_NAME "/REPLACE_THIS_WITH_THE_BSP)"; - -/* - * This table is used by the single entry point code. - */ - -const void * _Entry_points[ RTEMS_NUMBER_OF_ENTRY_POINTS ] = { - (void *) rtems_initialize_executive, /* 0 */ - (void *) rtems_initialize_executive_early, /* 1 */ - (void *) rtems_initialize_executive_late, /* 2 */ - (void *) rtems_shutdown_executive, /* 3 */ - (void *) rtems_task_create, /* 4 */ - (void *) rtems_task_ident, /* 5 */ - (void *) rtems_task_start, /* 6 */ - (void *) rtems_task_restart, /* 7 */ - (void *) rtems_task_delete, /* 8 */ - (void *) rtems_task_suspend, /* 9 */ - (void *) rtems_task_resume, /* 10 */ - (void *) rtems_task_set_priority, /* 11 */ - (void *) rtems_task_mode, /* 12 */ - (void *) rtems_task_get_note, /* 13 */ - (void *) rtems_task_set_note, /* 14 */ - (void *) rtems_task_wake_after, /* 15 */ - (void *) rtems_task_wake_when, /* 16 */ - (void *) rtems_interrupt_catch, /* 17 */ - (void *) rtems_clock_set, /* 18 */ - (void *) rtems_clock_get, /* 19 */ - (void *) rtems_clock_tick, /* 20 */ - (void *) rtems_extension_create, /* 21 */ - (void *) rtems_extension_ident, /* 22 */ - (void *) rtems_extension_delete, /* 23 */ - (void *) rtems_timer_create, /* 24 */ - (void *) rtems_timer_ident, /* 25 */ - (void *) rtems_timer_cancel, /* 26 */ - (void *) rtems_timer_delete, /* 27 */ - (void *) rtems_timer_fire_after, /* 28 */ - (void *) rtems_timer_fire_when, /* 29 */ - (void *) rtems_timer_reset, /* 30 */ - (void *) rtems_semaphore_create, /* 31 */ - (void *) rtems_semaphore_ident, /* 32 */ - (void *) rtems_semaphore_delete, /* 33 */ - (void *) rtems_semaphore_obtain, /* 34 */ - (void *) rtems_semaphore_release, /* 35 */ - (void *) rtems_message_queue_create, /* 36 */ - (void *) rtems_message_queue_ident, /* 37 */ - (void *) rtems_message_queue_delete, /* 38 */ - (void *) rtems_message_queue_send, /* 39 */ - (void *) rtems_message_queue_urgent, /* 40 */ - (void *) rtems_message_queue_broadcast, /* 41 */ - (void *) rtems_message_queue_receive, /* 42 */ - (void *) rtems_message_queue_flush, /* 43 */ - (void *) rtems_event_send, /* 44 */ - (void *) rtems_event_receive, /* 45 */ - (void *) rtems_signal_catch, /* 46 */ - (void *) rtems_signal_send, /* 47 */ - (void *) rtems_partition_create, /* 48 */ - (void *) rtems_partition_ident, /* 49 */ - (void *) rtems_partition_delete, /* 50 */ - (void *) rtems_partition_get_buffer, /* 51 */ - (void *) rtems_partition_return_buffer, /* 52 */ - (void *) rtems_region_create, /* 53 */ - (void *) rtems_region_extend, /* 54 */ - (void *) rtems_region_ident, /* 55 */ - (void *) rtems_region_delete, /* 56 */ - (void *) rtems_region_get_segment, /* 57 */ - (void *) rtems_region_get_segment_size, /* 58 */ - (void *) rtems_region_return_segment, /* 59 */ - (void *) rtems_port_create, /* 60 */ - (void *) rtems_port_ident, /* 61 */ - (void *) rtems_port_delete, /* 62 */ - (void *) rtems_port_external_to_internal, /* 63 */ - (void *) rtems_port_internal_to_external, /* 64 */ - (void *) rtems_io_initialize, /* 65 */ - (void *) rtems_io_register_name, /* 66 */ - (void *) rtems_io_lookup_name, /* 67 */ - (void *) rtems_io_open, /* 68 */ - (void *) rtems_io_close, /* 69 */ - (void *) rtems_io_read, /* 70 */ - (void *) rtems_io_write, /* 71 */ - (void *) rtems_io_control, /* 72 */ - (void *) rtems_fatal_error_occurred, /* 73 */ - (void *) rtems_rate_monotonic_create, /* 74 */ - (void *) rtems_rate_monotonic_ident, /* 75 */ - (void *) rtems_rate_monotonic_delete, /* 76 */ - (void *) rtems_rate_monotonic_cancel, /* 77 */ - (void *) rtems_rate_monotonic_period, /* 78 */ -#if defined(RTEMS_MULTIPROCESSING) - (void *) rtems_multiprocessing_announce, /* 79 */ -#else - (void *) NULL, /* 79 */ -#endif - (void *) rtems_debug_enable, /* 80 */ - (void *) rtems_debug_disable /* 81 */ -}; - #ifdef __cplusplus } #endif diff --git a/c/src/exec/sapi/src/Makefile.in b/c/src/exec/sapi/src/Makefile.in index 7431b2cf7e..93aedc4884 100644 --- a/c/src/exec/sapi/src/Makefile.in +++ b/c/src/exec/sapi/src/Makefile.in @@ -15,7 +15,7 @@ PROJECT_ROOT = @PROJECT_ROOT@ VPATH = @srcdir@ -C_PIECES= debug extension fatal exinit io posixapi rtemsapi +C_PIECES= debug entrytable extension fatal exinit io posixapi rtemsapi C_FILES=$(C_PIECES:%=%.c) C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) diff --git a/c/src/exec/sapi/src/entrytable.c b/c/src/exec/sapi/src/entrytable.c new file mode 100644 index 0000000000..32d681bc99 --- /dev/null +++ b/c/src/exec/sapi/src/entrytable.c @@ -0,0 +1,106 @@ +/* entrytable.c + * + * This include file contains the executive's entry table. + * + * COPYRIGHT (c) 1989-1998. + * On-Line Applications Research Corporation (OAR). + * Copyright assigned to U.S. Government, 1994. + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ + +#include +#include + +const void * _Entry_points[ RTEMS_NUMBER_OF_ENTRY_POINTS ] = { + (void *) rtems_initialize_executive, /* 0 */ + (void *) rtems_initialize_executive_early, /* 1 */ + (void *) rtems_initialize_executive_late, /* 2 */ + (void *) rtems_shutdown_executive, /* 3 */ + (void *) rtems_task_create, /* 4 */ + (void *) rtems_task_ident, /* 5 */ + (void *) rtems_task_start, /* 6 */ + (void *) rtems_task_restart, /* 7 */ + (void *) rtems_task_delete, /* 8 */ + (void *) rtems_task_suspend, /* 9 */ + (void *) rtems_task_resume, /* 10 */ + (void *) rtems_task_set_priority, /* 11 */ + (void *) rtems_task_mode, /* 12 */ + (void *) rtems_task_get_note, /* 13 */ + (void *) rtems_task_set_note, /* 14 */ + (void *) rtems_task_wake_after, /* 15 */ + (void *) rtems_task_wake_when, /* 16 */ + (void *) rtems_interrupt_catch, /* 17 */ + (void *) rtems_clock_set, /* 18 */ + (void *) rtems_clock_get, /* 19 */ + (void *) rtems_clock_tick, /* 20 */ + (void *) rtems_extension_create, /* 21 */ + (void *) rtems_extension_ident, /* 22 */ + (void *) rtems_extension_delete, /* 23 */ + (void *) rtems_timer_create, /* 24 */ + (void *) rtems_timer_ident, /* 25 */ + (void *) rtems_timer_cancel, /* 26 */ + (void *) rtems_timer_delete, /* 27 */ + (void *) rtems_timer_fire_after, /* 28 */ + (void *) rtems_timer_fire_when, /* 29 */ + (void *) rtems_timer_reset, /* 30 */ + (void *) rtems_semaphore_create, /* 31 */ + (void *) rtems_semaphore_ident, /* 32 */ + (void *) rtems_semaphore_delete, /* 33 */ + (void *) rtems_semaphore_obtain, /* 34 */ + (void *) rtems_semaphore_release, /* 35 */ + (void *) rtems_message_queue_create, /* 36 */ + (void *) rtems_message_queue_ident, /* 37 */ + (void *) rtems_message_queue_delete, /* 38 */ + (void *) rtems_message_queue_send, /* 39 */ + (void *) rtems_message_queue_urgent, /* 40 */ + (void *) rtems_message_queue_broadcast, /* 41 */ + (void *) rtems_message_queue_receive, /* 42 */ + (void *) rtems_message_queue_flush, /* 43 */ + (void *) rtems_event_send, /* 44 */ + (void *) rtems_event_receive, /* 45 */ + (void *) rtems_signal_catch, /* 46 */ + (void *) rtems_signal_send, /* 47 */ + (void *) rtems_partition_create, /* 48 */ + (void *) rtems_partition_ident, /* 49 */ + (void *) rtems_partition_delete, /* 50 */ + (void *) rtems_partition_get_buffer, /* 51 */ + (void *) rtems_partition_return_buffer, /* 52 */ + (void *) rtems_region_create, /* 53 */ + (void *) rtems_region_extend, /* 54 */ + (void *) rtems_region_ident, /* 55 */ + (void *) rtems_region_delete, /* 56 */ + (void *) rtems_region_get_segment, /* 57 */ + (void *) rtems_region_get_segment_size, /* 58 */ + (void *) rtems_region_return_segment, /* 59 */ + (void *) rtems_port_create, /* 60 */ + (void *) rtems_port_ident, /* 61 */ + (void *) rtems_port_delete, /* 62 */ + (void *) rtems_port_external_to_internal, /* 63 */ + (void *) rtems_port_internal_to_external, /* 64 */ + (void *) rtems_io_initialize, /* 65 */ + (void *) rtems_io_register_name, /* 66 */ + (void *) rtems_io_lookup_name, /* 67 */ + (void *) rtems_io_open, /* 68 */ + (void *) rtems_io_close, /* 69 */ + (void *) rtems_io_read, /* 70 */ + (void *) rtems_io_write, /* 71 */ + (void *) rtems_io_control, /* 72 */ + (void *) rtems_fatal_error_occurred, /* 73 */ + (void *) rtems_rate_monotonic_create, /* 74 */ + (void *) rtems_rate_monotonic_ident, /* 75 */ + (void *) rtems_rate_monotonic_delete, /* 76 */ + (void *) rtems_rate_monotonic_cancel, /* 77 */ + (void *) rtems_rate_monotonic_period, /* 78 */ +#if defined(RTEMS_MULTIPROCESSING) + (void *) rtems_multiprocessing_announce, /* 79 */ +#else + (void *) NULL, /* 79 */ +#endif + (void *) rtems_debug_enable, /* 80 */ + (void *) rtems_debug_disable /* 81 */ +}; -- cgit v1.2.3