From 1e1ee0c01796a12e6f6b2019334455555223deab Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 13 Jul 2011 18:35:04 +0000 Subject: 2011-07-13 Joel Sherrill PR 1824/cpukit * bootcard.c, bspclean.c, include/bootcard.h: Return exit/shutdown status back to boot_card(). boot_card() propagates this to bsp_cleanup() and returns it to the assembly that started the application. --- c/src/lib/libbsp/shared/include/bootcard.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'c/src/lib/libbsp/shared/include/bootcard.h') diff --git a/c/src/lib/libbsp/shared/include/bootcard.h b/c/src/lib/libbsp/shared/include/bootcard.h index 74ad6eec61..33f4883362 100644 --- a/c/src/lib/libbsp/shared/include/bootcard.h +++ b/c/src/lib/libbsp/shared/include/bootcard.h @@ -62,7 +62,7 @@ void bsp_predriver_hook(void); void bsp_postdriver_hook(void); -void bsp_cleanup(void); +void bsp_cleanup(uint32_t status); void bsp_reset(void); @@ -118,9 +118,11 @@ uintptr_t bsp_sbrk_init( * the framework for the BSP initialization sequence. The basic flow of * initialization is: * - * - disable interrupts, interrupts will be enabled during the first context switch + * - disable interrupts, interrupts will be enabled during the first context + * switch * - bsp_start() - more advanced initialization - * - obtain information on BSP memory via bsp_get_work_area() and allocate RTEMS Workspace + * - obtain information on BSP memory via bsp_get_work_area() and allocate + * RTEMS Workspace * - rtems_initialize_data_structures() * - allocate memory for C Program Heap * - initialize C Library and C Program Heap @@ -144,7 +146,7 @@ uintptr_t bsp_sbrk_init( * This style of initialization ensures that the C++ global constructors are * executed after RTEMS is initialized. */ -int boot_card(const char *cmdline); +uint32_t boot_card(const char *cmdline); /** @} */ -- cgit v1.2.3