9
0
Fork 0

Call call to low-level UART initialization logic

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3309 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2011-02-22 02:26:15 +00:00
parent 1db0735ab9
commit b6a7483bb8
2 changed files with 37 additions and 2 deletions

View File

@ -126,6 +126,11 @@
/**************************************************************************
* Name: up_lowsetup
*
* Note: This function is called from the boot logic very early in the
* initialization sequence: After the stack pointer has been setup, but
* before .bss has been cleared and .data initialized.
*
**************************************************************************/
.text

View File

@ -59,9 +59,11 @@
* Global Symbols
****************************************************************************/
.file "m9s12_start.S"
.globl __start
.globl os_start
.file "m9s12_start.S"
.globl up_lowsetup
.globl hcs12_boardinitialize
/****************************************************************************
* Macros
@ -72,8 +74,17 @@
*/
.macro showprogress, code
#if defined(CONFIG_DEBUG) && defined(CONFIG_HCS12_SERIALMON)
#ifdef CONFIG_DEBUG
ldab \code
#ifdef CONFIG_HCS12_SERIALMON
jsr #PutChar
#else
#ifdef CONFIG_HCS12_NONBANKED
jsr up_lowputc
#else
call up_lowputc
#endif
#endif
#endif
.endm
@ -161,6 +172,16 @@ __start:
/* Setup the stack pointer */
lds .Lstackbase
/* Perform early, low-level initialization */
#ifndef CONFIG_HCS12_SERIALMON
#ifdef CONFIG_HCS12_NONBANKED
jsr up_lowsetup
#else
call up_lowsetup
#endif
#endif
showprogress 'A'
/* Clear BSS */
@ -196,6 +217,15 @@ __start:
.Ldatainitialized:
showprogress 'C'
/* Perform early board-level initialization */
#ifdef CONFIG_HCS12_NONBANKED
jsr hcs12_boardinitialize
#else
call hcs12_boardinitialize
#endif
showprogress 'D'
/* Now, start the OS */
showprogress '\n'