diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-05-01 19:15:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-05-01 19:15:38 +0000 |
commit | e890774a799e1ea99221330f54d05cd7e8158629 (patch) | |
tree | 41737b358fe6702ef1d69b4027df10b6cd9ae196 /c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c | |
parent | Rebase against gcc-core-4.2.0-20070430 (gcc-4.2.0 rc2) (diff) | |
download | rtems-e890774a799e1ea99221330f54d05cd7e8158629.tar.bz2 |
2007-05-01 Ray Xu <xr@trasin.net>
* README, times, console/lpc22xx_uart.h, console/uart.c, include/bsp.h,
start/start.S, startup/bspstart.c, startup/exit.c, startup/linkcmds:
Update BSP to address changes between 4.7 and CVS head as well as to
address comments from Ralf and Joel.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c b/c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c index 7881d227c4..2ae12acaf9 100644 --- a/c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c +++ b/c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c @@ -1,7 +1,7 @@ /* - * LPC22XX Startup code + * LPC22XX/LPC21xx Startup code * - * Copyright (c) 2005 by Ray X <rayx.cn@gmail.com> + * Copyright (c) 2007 by Ray Xu <rayx.cn@gmail.com> * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at @@ -92,7 +92,8 @@ void bsp_pretasking_hook(void) heap_start = free_mem_start; /* heap_size = (free_mem_end - heap_start - MEM_NOCACHE_SIZE); */ - /*the board seems to have only 512K memory, we use 256K as heap*/ + /*the board seems to have only 512K memory, we use 256K as heap, 256K to + store the .text*/ heap_size = 0x40000; bsp_libc_init((void *)heap_start, heap_size, 0); @@ -133,7 +134,6 @@ void bsp_pretasking_hook(void) /**************************************************************************/ void bsp_start_default( void ) { - uint32_t i; PINSEL2 =0x0f814914; BCFG0 = 0x1000ffef; BCFG1 = 0x1000ffef; @@ -171,6 +171,7 @@ void bsp_start_default( void ) PLLFEED = 0x55; /* memory configure */ + /* it is not needed in my formatter board */ //MAMCR = 0; // MAMTIM = 3; //MAMCR = 2; @@ -201,6 +202,7 @@ void bsp_start_default( void ) #if 0 debug_printk(" bsp_start_defalt"); + printi((int)&bsp_start_defalt); debug_printk(" _bss_free_start"); printi((int)&_bss_free_start); @@ -216,9 +218,6 @@ void bsp_start_default( void ) debug_printk(" free_mem_end"); printi((int)free_mem_end); - - - printi(free_mem_end); #endif /* |