summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-09-05 01:22:04 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-09-05 01:22:04 +0000
commitce45c0aa761a8805df73e322a839d623c1cedf4e (patch)
tree9a810656fcea49e012fbc18e1365ff574a8a6351 /nuttx/arch/arm/src/lpc313x/lpc313x_boot.c
parent5bb64be435bd192e7a3ca52bb5be8cff09cfd14c (diff)
downloadpx4-nuttx-ce45c0aa761a8805df73e322a839d623c1cedf4e.tar.gz
px4-nuttx-ce45c0aa761a8805df73e322a839d623c1cedf4e.tar.bz2
px4-nuttx-ce45c0aa761a8805df73e322a839d623c1cedf4e.zip
Basic MMU setup seems ok now
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2919 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc313x/lpc313x_boot.c')
-rwxr-xr-xnuttx/arch/arm/src/lpc313x/lpc313x_boot.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c b/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c
index 51f6079bd..4e96e60c8 100755
--- a/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c
+++ b/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c
@@ -208,18 +208,16 @@ static void up_setupmappings(void)
#if !defined(CONFIG_ARCH_ROMPGTABLE) && defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_PAGING)
static void up_vectorpermissions(uint32_t mmuflags)
{
- uint32_t *ptr = (uint32_t*)PG_L2_VECT_VADDR;
+ /* The PTE for virtual address zero is at the base of the L2 page table */
+
+ uint32_t *ptr = (uint32_t*)PGTABLE_BASE_VADDR;
uint32_t pte;
/* This is easily because we have already been told everything! */
pte = *ptr;
-#ifdef CONFIG_PAGING_VECPPAGE
- /* We've been told to use a specify page for the vectors. In this
- * case, I expect the pte to be zero the first time this function is
- * called (what if it is not?)
- */
+ /* The pte might be zero the first time this function is called . */
if (pte == 0)
{
@@ -229,14 +227,6 @@ static void up_vectorpermissions(uint32_t mmuflags)
{
pte &= PG_L1_PADDRMASK;
}
-#else
- /* Otherwise, we should be using the page at the beginning of the
- * locked text region.
- */
-
- ASSERT(pte != 0);
- pte &= PG_L1_PADDRMASK;
-#endif
/* Update the MMU flags and save */