summaryrefslogtreecommitdiff
path: root/nuttx/configs/open1788/scripts/user-space.ld
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-14 14:42:52 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-14 14:42:52 +0000
commit0d36830a37fcdb64c2b2d00990e084e7f8d63456 (patch)
tree78cc505c6874907ce2a37ab2b94d15c848c0ce50 /nuttx/configs/open1788/scripts/user-space.ld
parent5be9588ed42d1a4ed297bdc76d9e05e582e78969 (diff)
downloadpx4-nuttx-0d36830a37fcdb64c2b2d00990e084e7f8d63456.tar.gz
px4-nuttx-0d36830a37fcdb64c2b2d00990e084e7f8d63456.tar.bz2
px4-nuttx-0d36830a37fcdb64c2b2d00990e084e7f8d63456.zip
Rename g_heapbase to g_idle_topstack; Fix kernel build heap allocation which cannot use g_heapbase
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5739 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/open1788/scripts/user-space.ld')
-rw-r--r--nuttx/configs/open1788/scripts/user-space.ld37
1 files changed, 5 insertions, 32 deletions
diff --git a/nuttx/configs/open1788/scripts/user-space.ld b/nuttx/configs/open1788/scripts/user-space.ld
index 149be92f1..e2979e4a3 100644
--- a/nuttx/configs/open1788/scripts/user-space.ld
+++ b/nuttx/configs/open1788/scripts/user-space.ld
@@ -1,7 +1,7 @@
/****************************************************************************
* configs/open1788/scripts/user-space.ld
*
- * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -33,39 +33,13 @@
*
****************************************************************************/
-/* The LPC1788 has 512Kb of FLASH beginning at address 0x0000:0000 and
- * 96Kb of total SRAM: 64Kb of SRAM in the CPU block beginning at address
- * 0x10000000 and 32Kb of Peripheral SRAM in two banks, 8Kb at addresses
- * 0x20000000 bank0 first and 8kb at 0x20002000 at bank0 second. And 16Kb
- * at 0x20004000 on bank1.
- *
- * For MPU support, the kernel-mode NuttX section is assumed to be 64Kb of
- * FLASH and 4Kb of SRAM. That, of course, can be optimized as needed (See
- * also configs/open1788/scripts/kernel-space.ld).
+/* NOTE: This depends on the memory.ld script having been included prior to
+ * this script.
*/
-MEMORY
-{
- /* 256Kb FLASH */
-
- kflash (rx) : ORIGIN = 0x00000000, LENGTH = 64K
- uflash (rx) : ORIGIN = 0x00010000, LENGTH = 448K
-
- /* 64Kb of SRAM in the CPU block */
-
- ksram (rwx) : ORIGIN = 0x10000000, LENGTH = 4K
- usram (rwx) : ORIGIN = 0x10001000, LENGTH = 60K
-
- /* Other peripheral memory (free, nothing is linked here) */
-
- ahbram8_b0a(rwx) : ORIGIN = 0x20000000, LENGTH = 8K
- ahbram8_b0b(rwx) : ORIGIN = 0x20002000, LENGTH = 8K
- ahbram16(rwx) : ORIGIN = 0x20004000, LENGTH = 16K
-}
-
/* Make sure that the critical memory management functions are in user-space.
- * Currently, the plan is that the memory manager will reside in user-space
- * but be usable both by kernel- and user-space code
+ * the user heap memory manager will reside in user-space but be usable both
+ * by kernel- and user-space code
*/
EXTERN(umm_initialize)
@@ -79,7 +53,6 @@ EXTERN(zalloc)
EXTERN(free)
OUTPUT_ARCH(arm)
-
SECTIONS
{
.userspace : {