diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-09-18 08:06:32 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-09-18 08:06:32 +0000 |
commit | 091705c07fc934b7ad1afb99e2b3dbc8010fa684 (patch) | |
tree | 89af05bc1470dd7a004af9a67d865bc3bb9fcf16 /c/src/lib/libbsp/arm/shared/include/start.h | |
parent | Changes throughout. (diff) | |
download | rtems-091705c07fc934b7ad1afb99e2b3dbc8010fa684.tar.bz2 |
Removed symbols and renamed sections.
Added bsp_start_memcpy(). Documentation. Changes for external ROM start.
Diffstat (limited to 'c/src/lib/libbsp/arm/shared/include/start.h')
-rw-r--r-- | c/src/lib/libbsp/arm/shared/include/start.h | 80 |
1 files changed, 50 insertions, 30 deletions
diff --git a/c/src/lib/libbsp/arm/shared/include/start.h b/c/src/lib/libbsp/arm/shared/include/start.h index 5326365ff0..0d7e5c07be 100644 --- a/c/src/lib/libbsp/arm/shared/include/start.h +++ b/c/src/lib/libbsp/arm/shared/include/start.h @@ -1,54 +1,74 @@ /** * @file * - * @brief Start entry functions. + * @ingroup bsp_start + * + * @brief System low level start. */ /* - * Copyright (c) 2008 - * Embedded Brains GmbH + * Copyright (c) 2008, 2009 + * embedded brains GmbH * Obere Lagerstr. 30 * D-82178 Puchheim * Germany - * rtems@embedded-brains.de + * <rtems@embedded-brains.de> * - * The license and distribution terms for this file may be found in the file - * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE. + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. */ #ifndef LIBBSP_ARM_SHARED_START_H #define LIBBSP_ARM_SHARED_START_H -#ifndef ASM +#include <stddef.h> - /** - * @brief System start entry. - */ - void start( void); +/** + * @defgroup bsp_start System Start + * + * @ingroup bsp_kit + * + * @brief System low level start. + * + * @{ + */ - /** - * @brief Start entry hook 0. - * - * This hook will be called from the start entry code after all modes and - * stack pointers are initialized but before the copying of the exception - * vectors. - */ - void bsp_start_hook_0( void); +/** +* @brief System start entry. +*/ +void start(void); - /** - * @brief Start entry hook 1. - * - * This hook will be called from the start entry code after copying of the - * exception vectors but before the call to boot card. - */ - void bsp_start_hook_1( void); +/** +* @brief Start entry hook 0. +* +* This hook will be called from the start entry code after all modes and +* stack pointers are initialized but before the copying of the exception +* vectors. +*/ +void bsp_start_hook_0(void); -#else +/** +* @brief Start entry hook 1. +* +* This hook will be called from the start entry code after copying of the +* exception vectors but before the call to boot_card(). +*/ +void bsp_start_hook_1(void); - .extern bsp_start_hook_0 +/** + * @brief Similar to standard memcpy(). + * + * The memory areas must be word aligned. Copy code will be executed from the + * stack. If @a dest equals @a src nothing will be copied. + */ +void bsp_start_memcpy(int *dest, const int *src, size_t n); - .extern bsp_start_hook_1 +/** + * @brief ARM entry point to bsp_start_memcpy(). + */ +void bsp_start_memcpy_arm(int *dest, const int *src, size_t n); -#endif +/** @} */ #endif /* LIBBSP_ARM_SHARED_START_H */ |