diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-09-05 14:31:46 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-09-05 14:31:46 +0000 |
commit | 08f9be9b748dfa310b3150e0a931e3aa89c09eeb (patch) | |
tree | c2c02b16f2ac8dcdf0282138d82a6a1fc006d385 /nuttx/arch/arm/src/lpc313x/lpc313x_boot.c | |
parent | d9a124c4ea54ff065853f43a056670ecf14e523d (diff) | |
download | px4-nuttx-08f9be9b748dfa310b3150e0a931e3aa89c09eeb.tar.gz px4-nuttx-08f9be9b748dfa310b3150e0a931e3aa89c09eeb.tar.bz2 px4-nuttx-08f9be9b748dfa310b3150e0a931e3aa89c09eeb.zip |
APB0 and APB1 must be in same MMU section
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2921 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc313x/lpc313x_boot.c')
-rwxr-xr-x | nuttx/arch/arm/src/lpc313x/lpc313x_boot.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c b/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c index cd3de31ae..8840c6fdb 100755 --- a/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c +++ b/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c @@ -100,10 +100,8 @@ static const struct section_mapping_s section_mapping[] = { LPC313X_INTSROM0_PSECTION, LPC313X_INTSROM0_VSECTION, LPC313X_INTSROM_MMUFLAGS, LPC313X_INTSROM0_NSECTIONS}, #endif - { LPC313X_APB0_PSECTION, LPC313X_APB0_VSECTION, - LPC313X_APB0_MMUFLAGS, LPC313X_APB0_NSECTIONS}, - { LPC313X_APB1_PSECTION, LPC313X_APB1_VSECTION, - LPC313X_APB1_MMUFLAGS, LPC313X_APB1_NSECTIONS}, + { LPC313X_APB01_PSECTION, LPC313X_APB01_VSECTION, + LPC313X_APB01_MMUFLAGS, LPC313X_APB01_NSECTIONS}, { LPC313X_APB2_PSECTION, LPC313X_APB2_VSECTION, LPC313X_APB2_MMUFLAGS, LPC313X_APB2_NSECTIONS}, { LPC313X_APB3_PSECTION, LPC313X_APB3_VSECTION, @@ -210,17 +208,14 @@ static void up_setupmappings(void) #if !defined(CONFIG_ARCH_ROMPGTABLE) && defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_PAGING) static void up_vectorpermissions(uint32_t mmuflags) { - /* The PTE for virtual address zero is at the base of the L2 page table */ + /* The PTE for the beginning of ISRAM is at the base of the L2 page table */ - uint32_t *ptr = (uint32_t*)PGTABLE_BASE_VADDR; + uint32_t *ptr = (uint32_t*)PG_L2_VECT_VADDR; uint32_t pte; - /* This is easily because we have already been told everything! */ + /* The pte might be zero the first time this function is called. */ pte = *ptr; - - /* The pte might be zero the first time this function is called . */ - if (pte == 0) { pte = PG_VECT_PBASE; |