diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-09-04 02:24:38 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-09-04 02:24:38 +0000 |
commit | 5bb64be435bd192e7a3ca52bb5be8cff09cfd14c (patch) | |
tree | 4ed4562742fe878f2e8599cf3482d65b467a220e /nuttx/configs/ea3131 | |
parent | 6fcbb1288b1a116710979e9d1aad9ccef03ce75d (diff) | |
download | px4-nuttx-5bb64be435bd192e7a3ca52bb5be8cff09cfd14c.tar.gz px4-nuttx-5bb64be435bd192e7a3ca52bb5be8cff09cfd14c.tar.bz2 px4-nuttx-5bb64be435bd192e7a3ca52bb5be8cff09cfd14c.zip |
Init code needs to be in locked section too
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2918 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/ea3131')
-rwxr-xr-x | nuttx/configs/ea3131/locked/mklocked.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nuttx/configs/ea3131/locked/mklocked.sh b/nuttx/configs/ea3131/locked/mklocked.sh index b15ce6321..911cfb958 100755 --- a/nuttx/configs/ea3131/locked/mklocked.sh +++ b/nuttx/configs/ea3131/locked/mklocked.sh @@ -90,6 +90,7 @@ echo "EXTERN(up_vectorprefetch)" >>ld-locked.inc echo "EXTERN(up_vectorundefinsn)" >>ld-locked.inc echo "EXTERN(up_vectorfiq)" >>ld-locked.inc echo "EXTERN(up_vectorirq)" >>ld-locked.inc +echo "EXTERN(up_vectoaddrexcptn)" >>ld-locked.inc # # These are the initialization entry points of all device drivers that @@ -114,6 +115,19 @@ if [ $answer = y ]; then fi ############################################################################ +# Initialization logic +############################################################################ +# All initialization logic must be in memory because it must execute before +# the page fill worker thread is started. Ideally this would be in some +# region that is mapped initially, but then unmapped after initialization +# is complete -- effectively freeing the memory used for the 1-time +# initialization code. That optimization has not yet been made and, as +# consequence, the 1-time initialization code takes up precious memory +# in the locked memory region. + +echo "EXTERN(up_boot)" >>ld-locked.inc + +############################################################################ # Idle Loop ############################################################################ # |