diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-21 16:16:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-21 16:16:47 +0000 |
commit | d9be802487b130aa16eb5a438f172471c1f734a0 (patch) | |
tree | 366a3144d60bb4831b9e0657f93cdec7ba816e6a /c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h | |
parent | 2008-08-21 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-d9be802487b130aa16eb5a438f172471c1f734a0.tar.bz2 |
2008-08-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am: Added bspclean.c and use shared bsppretaskinghook.c.
* console/console.c: Added poll for char helper.
* include/bsp.h: Add macro definitions for optional reset behavior.
* startup/bspstart.c: Split out bsp_cleanup(). Clean up.
* startup/bspclean.c: New file. Not can press any key on normal
shutdown to reset board when on MPC8313erdb.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h')
-rw-r--r-- | c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h b/c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h index c5408fe839..b9b8216e98 100644 --- a/c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h +++ b/c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h @@ -32,6 +32,10 @@ #define CONFIG_MPC83XX #define CONFIG_HAS_ETH1 +/* We want to prompt for a reset and then reset the board */ +#define BSP_PRESS_KEY_FOR_RESET 1 +#define BSP_RESET_BOARD_AT_EXIT 1 + #endif /* MPC8313ERDB */ #include <libcpu/powerpc-utility.h> @@ -42,33 +46,33 @@ * Some symbols defined in the linker command file. */ -LINKER_SYMBOL( bsp_ram_start); -LINKER_SYMBOL( bsp_ram_end); -LINKER_SYMBOL( bsp_ram_size); +LINKER_SYMBOL(bsp_ram_start); +LINKER_SYMBOL(bsp_ram_end); +LINKER_SYMBOL(bsp_ram_size); -LINKER_SYMBOL( bsp_rom_start); -LINKER_SYMBOL( bsp_rom_end); -LINKER_SYMBOL( bsp_rom_size); +LINKER_SYMBOL(bsp_rom_start); +LINKER_SYMBOL(bsp_rom_end); +LINKER_SYMBOL(bsp_rom_size); -LINKER_SYMBOL( bsp_section_text_start); -LINKER_SYMBOL( bsp_section_text_end); -LINKER_SYMBOL( bsp_section_text_size); +LINKER_SYMBOL(bsp_section_text_start); +LINKER_SYMBOL(bsp_section_text_end); +LINKER_SYMBOL(bsp_section_text_size); -LINKER_SYMBOL( bsp_section_data_start); -LINKER_SYMBOL( bsp_section_data_end); -LINKER_SYMBOL( bsp_section_data_size); +LINKER_SYMBOL(bsp_section_data_start); +LINKER_SYMBOL(bsp_section_data_end); +LINKER_SYMBOL(bsp_section_data_size); -LINKER_SYMBOL( bsp_section_bss_start); -LINKER_SYMBOL( bsp_section_bss_end); -LINKER_SYMBOL( bsp_section_bss_size); +LINKER_SYMBOL(bsp_section_bss_start); +LINKER_SYMBOL(bsp_section_bss_end); +LINKER_SYMBOL(bsp_section_bss_size); -LINKER_SYMBOL( bsp_interrupt_stack_start); -LINKER_SYMBOL( bsp_interrupt_stack_end); -LINKER_SYMBOL( bsp_interrupt_stack_size); +LINKER_SYMBOL(bsp_interrupt_stack_start); +LINKER_SYMBOL(bsp_interrupt_stack_end); +LINKER_SYMBOL(bsp_interrupt_stack_size); -LINKER_SYMBOL( bsp_work_area_start); +LINKER_SYMBOL(bsp_work_area_start); -LINKER_SYMBOL( IMMRBAR); +LINKER_SYMBOL(IMMRBAR); #ifndef ASM |