Finally... renamed all CONFIG_DRAM_ settings to CONFIG_RAM_

This commit is contained in:
Gregory Nutt
2013-07-26 10:09:17 -06:00
parent f87963accd
commit 2f772c84fd
33 changed files with 154 additions and 154 deletions
+18 -15
View File
@@ -194,30 +194,33 @@ config ARCH_CALIBRATION
watch to measure the actual delay then adjust BOARD_LOOPSPERMSEC until watch to measure the actual delay then adjust BOARD_LOOPSPERMSEC until
the actual delay is 100 seconds. the actual delay is 100 seconds.
config DRAM_START config RAM_START
hex "DRAM start physical address" hex "Primary RAM start address (physical)"
default 0x0 default 0x0
help help
The physical start address of installed RAM. Despite the naming, The physical start address of primary installed RAM. "Primary" RAM
this may be SDRAM or SRAM or any other RAM technology that support refers to the RAM that you link program code into. If program code
program execution. does not excecute out of RAM but from FLASH, then you may designate
any block of RAM as "primary."
config DRAM_VSTART config RAM_VSTART
hex "DRAM start virtual address" hex "Primary RAM start address (virtual)"
default 0x0 default 0x0
depends on ARCH_HAVE_MMU depends on ARCH_HAVE_MMU
help help
The virtual start address of installed RAM. Despite the naming, The virtual start address of installed primary RAM. "Primary" RAM
this may be SDRAM or SRAM or any other RAM technology that support refers to the RAM that you link program code into. If program code
program execution. does not excecute out of RAM but from FLASH, then you may designate
any block of RAM as "primary."
config DRAM_SIZE config RAM_SIZE
int "DRAM size" int "Primary RAM size"
default 0 default 0
help help
The size in bytes of the installed RAM. Despite the naming, The size in bytes of the installed primary RAM. "Primary" RAM
this may be SDRAM or SRAM or any other RAM technology that support refers to the RAM that you link program code into. If program code
program execution. does not excecute out of RAM but from FLASH, then you may designate
any block of RAM as "primary."
config ARCH_HAVE_INTERRUPTSTACK config ARCH_HAVE_INTERRUPTSTACK
bool bool
+6 -6
View File
@@ -128,11 +128,11 @@
* beginning of RAM. * beginning of RAM.
*/ */
# if !defined(CONFIG_DRAM_START) || !defined(CONFIG_DRAM_VSTART) # if !defined(CONFIG_RAM_START) || !defined(CONFIG_RAM_VSTART)
# error "CONFIG_DRAM_START or CONFIG_DRAM_VSTART is not defined" # error "CONFIG_RAM_START or CONFIG_RAM_VSTART is not defined"
# endif # endif
# if CONFIG_DRAM_START == CONFIG_DRAM_VSTART # if CONFIG_RAM_START == CONFIG_RAM_VSTART
# define CONFIG_IDENTITY_TEXTMAP 1 # define CONFIG_IDENTITY_TEXTMAP 1
# endif # endif
@@ -162,13 +162,13 @@
****************************************************************************/ ****************************************************************************/
/* RX_NSECTIONS determines the number of 1Mb sections to map for the /* RX_NSECTIONS determines the number of 1Mb sections to map for the
* Read/eXecute address region. This is based on CONFIG_DRAM_SIZE. For most * Read/eXecute address region. This is based on CONFIG_RAM_SIZE. For most
* ARM9 architectures, CONFIG_DRAM_SIZE describes the size of installed SDRAM. * ARM9 architectures, CONFIG_RAM_SIZE describes the size of installed SDRAM.
* But for other architectures, this might refer to the size of FLASH or * But for other architectures, this might refer to the size of FLASH or
* SRAM regions. (bad choice of naming). * SRAM regions. (bad choice of naming).
*/ */
#define RX_NSECTIONS ((CONFIG_DRAM_SIZE+0x000fffff) >> 20) #define RX_NSECTIONS ((CONFIG_RAM_SIZE+0x000fffff) >> 20)
/**************************************************************************** /****************************************************************************
* Assembly Macros * Assembly Macros
+5 -8
View File
@@ -129,11 +129,11 @@
* beginning of RAM. * beginning of RAM.
*/ */
# if !defined(CONFIG_DRAM_START) || !defined(CONFIG_DRAM_VSTART) # if !defined(CONFIG_RAM_START) || !defined(CONFIG_RAM_VSTART)
# error "CONFIG_DRAM_START or CONFIG_DRAM_VSTART is not defined" # error "CONFIG_RAM_START or CONFIG_RAM_VSTART is not defined"
# endif # endif
# if CONFIG_DRAM_START == CONFIG_DRAM_VSTART # if CONFIG_RAM_START == CONFIG_RAM_VSTART
# define CONFIG_IDENTITY_TEXTMAP 1 # define CONFIG_IDENTITY_TEXTMAP 1
# endif # endif
@@ -163,13 +163,10 @@
****************************************************************************/ ****************************************************************************/
/* RX_NSECTIONS determines the number of 1Mb sections to map for the /* RX_NSECTIONS determines the number of 1Mb sections to map for the
* Read/eXecute address region. This is based on CONFIG_DRAM_SIZE. For most * Read/eXecute address region. This is based on CONFIG_RAM_SIZE.
* ARMv7-A architectures, CONFIG_DRAM_SIZE describes the size of installed SDRAM.
* But for other architectures, this might refer to the size of FLASH or
* SRAM regions. (bad choice of naming).
*/ */
#define RX_NSECTIONS ((CONFIG_DRAM_SIZE+0x000fffff) >> 20) #define RX_NSECTIONS ((CONFIG_RAM_SIZE+0x000fffff) >> 20)
/**************************************************************************** /****************************************************************************
* Assembly Macros * Assembly Macros
+5 -5
View File
@@ -111,10 +111,10 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
*/ */
uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE; uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE;
size_t usize = CONFIG_DRAM_END - ubase; size_t usize = CONFIG_RAM_END - ubase;
int log2; int log2;
DEBUGASSERT(ubase < (uintptr_t)CONFIG_DRAM_END); DEBUGASSERT(ubase < (uintptr_t)CONFIG_RAM_END);
/* Return the user-space heap settings */ /* Return the user-space heap settings */
@@ -127,7 +127,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_DRAM_END - g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack;
#endif #endif
} }
@@ -151,10 +151,10 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size)
*/ */
uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE; uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE;
size_t usize = CONFIG_DRAM_END - ubase; size_t usize = CONFIG_RAM_END - ubase;
int log2; int log2;
DEBUGASSERT(ubase < (uintptr_t)CONFIG_DRAM_END); DEBUGASSERT(ubase < (uintptr_t)CONFIG_RAM_END);
/* Return the kernel heap settings (i.e., the part of the heap region /* Return the kernel heap settings (i.e., the part of the heap region
* that was not dedicated to the user heap). * that was not dedicated to the user heap).
+1 -1
View File
@@ -194,7 +194,7 @@ extern volatile uint32_t *current_regs;
/* This is the beginning of heap as provided from up_head.S. /* This is the beginning of heap as provided from up_head.S.
* This is the first address in DRAM after the loaded * This is the first address in DRAM after the loaded
* program+bss+idle stack. The end of the heap is * program+bss+idle stack. The end of the heap is
* CONFIG_DRAM_END * CONFIG_RAM_END
*/ */
extern const uint32_t g_idle_topstack; extern const uint32_t g_idle_topstack;
+1 -1
View File
@@ -86,5 +86,5 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{ {
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = (DM320_SDRAM_VADDR + CONFIG_DRAM_SIZE) - g_idle_topstack; *heap_size = (DM320_SDRAM_VADDR + CONFIG_RAM_SIZE) - g_idle_topstack;
} }
+2 -2
View File
@@ -137,8 +137,8 @@
/* DM320 Virtual Memory Map */ /* DM320 Virtual Memory Map */
#if CONFIG_DRAM_VSTART != 0x00000000 #if CONFIG_RAM_VSTART != 0x00000000
# error "Invalid setting for CONFIG_DRAM_VSTART" # error "Invalid setting for CONFIG_RAM_VSTART"
#endif #endif
/* Section/Region Name Virt Address End Size CW */ /* Section/Region Name Virt Address End Size CW */
+1 -1
View File
@@ -121,7 +121,7 @@ up_phyrestart:
.type .LCphysrestart, %object .type .LCphysrestart, %object
.LCphysrestart: .LCphysrestart:
.long (up_phyrestart - CONFIG_DRAM_VSTART - CONFIG_DRAM_START) .long (up_phyrestart - CONFIG_RAM_VSTART - CONFIG_RAM_START)
.LCbtldrentry: .LCbtldrentry:
.long DM320_EXT_MEM_PADDR .long DM320_EXT_MEM_PADDR
+3 -3
View File
@@ -87,7 +87,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{ {
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = (IMX_SDRAM_VSECTION + CONFIG_DRAM_SIZE) - g_idle_topstack; *heap_size = (IMX_SDRAM_VSECTION + CONFIG_RAM_SIZE) - g_idle_topstack;
} }
/**************************************************************************** /****************************************************************************
@@ -107,8 +107,8 @@ void up_addregion(void)
*/ */
#if !defined(CONFIG_BOOT_RUNFROMFLASH) && !defined(CONFIG_BOOT_COPYTORAM) #if !defined(CONFIG_BOOT_RUNFROMFLASH) && !defined(CONFIG_BOOT_COPYTORAM)
# if (CONFIG_DRAM_NUTTXENTRY & 0xffff0000) != CONFIG_DRAM_VSTART # if (CONFIG_DRAM_NUTTXENTRY & 0xffff0000) != CONFIG_RAM_VSTART
uint32_t start = CONFIG_DRAM_VSTART + 0x1000; uint32_t start = CONFIG_RAM_VSTART + 0x1000;
uint32_t end = (CONFIG_DRAM_NUTTXENTRY & 0xffff0000); uint32_t end = (CONFIG_DRAM_NUTTXENTRY & 0xffff0000);
kmm_addregion((FAR void*)start, end - start); kmm_addregion((FAR void*)start, end - start);
# endif # endif
+3 -3
View File
@@ -65,7 +65,7 @@
/* Mapped sections */ /* Mapped sections */
#define IMX_PERIPHERALS_NSECTIONS 1 /* 1Mb 1 section */ #define IMX_PERIPHERALS_NSECTIONS 1 /* 1Mb 1 section */
#define IMX_SDRAM0_NSECTIONS 16 /* 16Mb Based on CONFIG_DRAM_SIZE */ #define IMX_SDRAM0_NSECTIONS 16 /* 16Mb Based on CONFIG_RAM_SIZE */
#define IMX_SDRAM1_NSECTIONS 0 /* 64Mb (Not mapped) */ #define IMX_SDRAM1_NSECTIONS 0 /* 64Mb (Not mapped) */
#define IMX_FLASH_NSECTIONS 32 /* 64Mb Based on CONFIG_FLASH_SIZE */ #define IMX_FLASH_NSECTIONS 32 /* 64Mb Based on CONFIG_FLASH_SIZE */
#define IMX_CS1_NSECTIONS 16 /* 16Mb */ #define IMX_CS1_NSECTIONS 16 /* 16Mb */
@@ -116,11 +116,11 @@
#ifdef CONFIG_BOOT_RUNFROMFLASH #ifdef CONFIG_BOOT_RUNFROMFLASH
/* Use the identity mapping */ /* Use the identity mapping */
# define IMX_SDRAM_VSECTION 0x08000000 /* -(+CONFIG_DRAM_SIZE) */ # define IMX_SDRAM_VSECTION 0x08000000 /* -(+CONFIG_RAM_SIZE) */
#else #else
/* Map SDRAM to address zero */ /* Map SDRAM to address zero */
# define IMX_SDRAM_VSECTION 0x00000000 /* -(+CONFIG_DRAM_SIZE) */ # define IMX_SDRAM_VSECTION 0x00000000 /* -(+CONFIG_RAM_SIZE) */
#endif #endif
/* We use a identity mapping for other regions */ /* We use a identity mapping for other regions */
+11 -11
View File
@@ -112,21 +112,21 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
*/ */
uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE; uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE;
size_t usize = CONFIG_DRAM_END - ubase; size_t usize = CONFIG_RAM_END - ubase;
int log2; int log2;
DEBUGASSERT(ubase < (uintptr_t)CONFIG_DRAM_END); DEBUGASSERT(ubase < (uintptr_t)CONFIG_RAM_END);
/* Adjust that size to account for MPU alignment requirements. /* Adjust that size to account for MPU alignment requirements.
* NOTE that there is an implicit assumption that the CONFIG_DRAM_END * NOTE that there is an implicit assumption that the CONFIG_RAM_END
* is aligned to the MPU requirement. * is aligned to the MPU requirement.
*/ */
log2 = (int)mpu_log2regionfloor(usize); log2 = (int)mpu_log2regionfloor(usize);
DEBUGASSERT((CONFIG_DRAM_END & ((1 << log2) - 1)) == 0); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2); usize = (1 << log2);
ubase = CONFIG_DRAM_END - usize; ubase = CONFIG_RAM_END - usize;
/* Return the user-space heap settings */ /* Return the user-space heap settings */
@@ -143,7 +143,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_DRAM_END - g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack;
#endif #endif
} }
@@ -166,21 +166,21 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size)
*/ */
uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE; uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE;
size_t usize = CONFIG_DRAM_END - ubase; size_t usize = CONFIG_RAM_END - ubase;
int log2; int log2;
DEBUGASSERT(ubase < (uintptr_t)CONFIG_DRAM_END); DEBUGASSERT(ubase < (uintptr_t)CONFIG_RAM_END);
/* Adjust that size to account for MPU alignment requirements. /* Adjust that size to account for MPU alignment requirements.
* NOTE that there is an implicit assumption that the CONFIG_DRAM_END * NOTE that there is an implicit assumption that the CONFIG_RAM_END
* is aligned to the MPU requirement. * is aligned to the MPU requirement.
*/ */
log2 = (int)mpu_log2regionfloor(usize); log2 = (int)mpu_log2regionfloor(usize);
DEBUGASSERT((CONFIG_DRAM_END & ((1 << log2) - 1)) == 0); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2); usize = (1 << log2);
ubase = CONFIG_DRAM_END - usize; ubase = CONFIG_RAM_END - usize;
/* Return the kernel heap settings (i.e., the part of the heap region /* Return the kernel heap settings (i.e., the part of the heap region
* that was not dedicated to the user heap). * that was not dedicated to the user heap).
+11 -11
View File
@@ -112,21 +112,21 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
*/ */
uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE; uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE;
size_t usize = CONFIG_DRAM_END - ubase; size_t usize = CONFIG_RAM_END - ubase;
int log2; int log2;
DEBUGASSERT(ubase < (uintptr_t)CONFIG_DRAM_END); DEBUGASSERT(ubase < (uintptr_t)CONFIG_RAM_END);
/* Adjust that size to account for MPU alignment requirements. /* Adjust that size to account for MPU alignment requirements.
* NOTE that there is an implicit assumption that the CONFIG_DRAM_END * NOTE that there is an implicit assumption that the CONFIG_RAM_END
* is aligned to the MPU requirement. * is aligned to the MPU requirement.
*/ */
log2 = (int)mpu_log2regionfloor(usize); log2 = (int)mpu_log2regionfloor(usize);
DEBUGASSERT((CONFIG_DRAM_END & ((1 << log2) - 1)) == 0); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2); usize = (1 << log2);
ubase = CONFIG_DRAM_END - usize; ubase = CONFIG_RAM_END - usize;
/* Return the user-space heap settings */ /* Return the user-space heap settings */
@@ -143,7 +143,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_DRAM_END - g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack;
#endif #endif
} }
@@ -166,21 +166,21 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size)
*/ */
uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE; uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE;
size_t usize = CONFIG_DRAM_END - ubase; size_t usize = CONFIG_RAM_END - ubase;
int log2; int log2;
DEBUGASSERT(ubase < (uintptr_t)CONFIG_DRAM_END); DEBUGASSERT(ubase < (uintptr_t)CONFIG_RAM_END);
/* Adjust that size to account for MPU alignment requirements. /* Adjust that size to account for MPU alignment requirements.
* NOTE that there is an implicit assumption that the CONFIG_DRAM_END * NOTE that there is an implicit assumption that the CONFIG_RAM_END
* is aligned to the MPU requirement. * is aligned to the MPU requirement.
*/ */
log2 = (int)mpu_log2regionfloor(usize); log2 = (int)mpu_log2regionfloor(usize);
DEBUGASSERT((CONFIG_DRAM_END & ((1 << log2) - 1)) == 0); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2); usize = (1 << log2);
ubase = CONFIG_DRAM_END - usize; ubase = CONFIG_RAM_END - usize;
/* Return the kernel heap settings (i.e., the part of the heap region /* Return the kernel heap settings (i.e., the part of the heap region
* that was not dedicated to the user heap). * that was not dedicated to the user heap).
+25 -25
View File
@@ -63,24 +63,24 @@
/* Configuration ************************************************************/ /* Configuration ************************************************************/
/* The configured RAM start address must be the beginning of CPU SRAM */ /* The configured RAM start address must be the beginning of CPU SRAM */
#if CONFIG_DRAM_START != LPC17_SRAM_BASE #if CONFIG_RAM_START != LPC17_SRAM_BASE
# warning "CONFIG_DRAM_START is not at LPC17_SRAM_BASE" # warning "CONFIG_RAM_START is not at LPC17_SRAM_BASE"
# undef CONFIG_DRAM_START # undef CONFIG_RAM_START
# undef CONFIG_DRAM_END # undef CONFIG_RAM_END
# define CONFIG_DRAM_START LPC17_SRAM_BASE # define CONFIG_RAM_START LPC17_SRAM_BASE
# define CONFIG_DRAM_END (LPC17_SRAM_BASE+LPC17_CPUSRAM_SIZE) # define CONFIG_RAM_END (LPC17_SRAM_BASE+LPC17_CPUSRAM_SIZE)
#endif #endif
/* The configured RAM size must be less then or equal to the CPU SRAM size */ /* The configured RAM size must be less then or equal to the CPU SRAM size */
#if CONFIG_DRAM_SIZE > LPC17_CPUSRAM_SIZE #if CONFIG_RAM_SIZE > LPC17_CPUSRAM_SIZE
# warning "CONFIG_DRAM_SIZE is larger than the size of CPU SRAM" # warning "CONFIG_RAM_SIZE is larger than the size of CPU SRAM"
# undef CONFIG_DRAM_SIZE # undef CONFIG_RAM_SIZE
# undef CONFIG_DRAM_END # undef CONFIG_RAM_END
# define CONFIG_DRAM_SIZE LPC17_CPUSRAM_SIZE # define CONFIG_RAM_SIZE LPC17_CPUSRAM_SIZE
# define CONFIG_DRAM_END (LPC17_SRAM_BASE+LPC17_CPUSRAM_SIZE) # define CONFIG_RAM_END (LPC17_SRAM_BASE+LPC17_CPUSRAM_SIZE)
#elif CONFIG_DRAM_SIZE < LPC17_CPUSRAM_SIZE #elif CONFIG_RAM_SIZE < LPC17_CPUSRAM_SIZE
# warning "CONFIG_DRAM_END is before end of CPU SRAM... not all of CPU SRAM used" # warning "CONFIG_RAM_END is before end of CPU SRAM... not all of CPU SRAM used"
#endif #endif
/* Figure out how much heap be have in AHB SRAM (if any). Complications: /* Figure out how much heap be have in AHB SRAM (if any). Complications:
@@ -222,21 +222,21 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
*/ */
uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE; uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE;
size_t usize = CONFIG_DRAM_END - ubase; size_t usize = CONFIG_RAM_END - ubase;
int log2; int log2;
DEBUGASSERT(ubase < (uintptr_t)CONFIG_DRAM_END); DEBUGASSERT(ubase < (uintptr_t)CONFIG_RAM_END);
/* Adjust that size to account for MPU alignment requirements. /* Adjust that size to account for MPU alignment requirements.
* NOTE that there is an implicit assumption that the CONFIG_DRAM_END * NOTE that there is an implicit assumption that the CONFIG_RAM_END
* is aligned to the MPU requirement. * is aligned to the MPU requirement.
*/ */
log2 = (int)mpu_log2regionfloor(usize); log2 = (int)mpu_log2regionfloor(usize);
DEBUGASSERT((CONFIG_DRAM_END & ((1 << log2) - 1)) == 0); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2); usize = (1 << log2);
ubase = CONFIG_DRAM_END - usize; ubase = CONFIG_RAM_END - usize;
/* Return the user-space heap settings */ /* Return the user-space heap settings */
@@ -253,7 +253,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_DRAM_END - g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack;
#endif #endif
} }
@@ -276,21 +276,21 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size)
*/ */
uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE; uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE;
size_t usize = CONFIG_DRAM_END - ubase; size_t usize = CONFIG_RAM_END - ubase;
int log2; int log2;
DEBUGASSERT(ubase < (uintptr_t)CONFIG_DRAM_END); DEBUGASSERT(ubase < (uintptr_t)CONFIG_RAM_END);
/* Adjust that size to account for MPU alignment requirements. /* Adjust that size to account for MPU alignment requirements.
* NOTE that there is an implicit assumption that the CONFIG_DRAM_END * NOTE that there is an implicit assumption that the CONFIG_RAM_END
* is aligned to the MPU requirement. * is aligned to the MPU requirement.
*/ */
log2 = (int)mpu_log2regionfloor(usize); log2 = (int)mpu_log2regionfloor(usize);
DEBUGASSERT((CONFIG_DRAM_END & ((1 << log2) - 1)) == 0); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2); usize = (1 << log2);
ubase = CONFIG_DRAM_END - usize; ubase = CONFIG_RAM_END - usize;
/* Return the kernel heap settings (i.e., the part of the heap region /* Return the kernel heap settings (i.e., the part of the heap region
* that was not dedicated to the user heap). * that was not dedicated to the user heap).
+14 -14
View File
@@ -133,10 +133,10 @@
* *
* The config.h file will define only: * The config.h file will define only:
* *
* CONFIG_DRAM_START = The start of the data RAM region which may be * CONFIG_RAM_START = The start of the data RAM region which may be
* either local SRAM bank 0 (Configuration A) or 1 (Configuration B). * either local SRAM bank 0 (Configuration A) or 1 (Configuration B).
* CONFIG_DRAM_START = The size of the data RAM region. * CONFIG_RAM_START = The size of the data RAM region.
* CONFIG_DRAM_END = The sum of the above * CONFIG_RAM_END = The sum of the above
*/ */
/* Check for Configuration A. */ /* Check for Configuration A. */
@@ -144,16 +144,16 @@
#ifndef CONFIG_LPC43_BOOT_SRAM #ifndef CONFIG_LPC43_BOOT_SRAM
/* Configuration A */ /* Configuration A */
/* CONFIG_DRAM_START should be set to the base of AHB SRAM, local 0. */ /* CONFIG_RAM_START should be set to the base of AHB SRAM, local 0. */
# if CONFIG_DRAM_START != LPC43_LOCSRAM_BANK0_BASE # if CONFIG_RAM_START != LPC43_LOCSRAM_BANK0_BASE
# error "CONFIG_DRAM_START must be set to the base address of AHB SRAM Bank 0" # error "CONFIG_RAM_START must be set to the base address of AHB SRAM Bank 0"
# endif # endif
/* The configured RAM size should be equal to the size of local SRAM Bank 0 */ /* The configured RAM size should be equal to the size of local SRAM Bank 0 */
# if CONFIG_DRAM_SIZE != LPC43_LOCSRAM_BANK0_SIZE # if CONFIG_RAM_SIZE != LPC43_LOCSRAM_BANK0_SIZE
# error "CONFIG_DRAM_SIZE must be set to size of AHB SRAM Bank 0" # error "CONFIG_RAM_SIZE must be set to size of AHB SRAM Bank 0"
# endif # endif
/* Now we can assign all of the memory regions for configuration A */ /* Now we can assign all of the memory regions for configuration A */
@@ -167,16 +167,16 @@
#else #else
/* Configuration B */ /* Configuration B */
/* CONFIG_DRAM_START should be set to the base of local SRAM, bank 1. */ /* CONFIG_RAM_START should be set to the base of local SRAM, bank 1. */
# if CONFIG_DRAM_START != LPC43_LOCSRAM_BANK1_BASE # if CONFIG_RAM_START != LPC43_LOCSRAM_BANK1_BASE
# error "CONFIG_DRAM_START must be set to the base address of AHB SRAM Bank 0" # error "CONFIG_RAM_START must be set to the base address of AHB SRAM Bank 0"
# endif # endif
/* The configured RAM size should be equal to the size of local SRAM Bank 1 */ /* The configured RAM size should be equal to the size of local SRAM Bank 1 */
# if CONFIG_DRAM_SIZE != LPC43_LOCSRAM_BANK1_SIZE # if CONFIG_RAM_SIZE != LPC43_LOCSRAM_BANK1_SIZE
# error "CONFIG_DRAM_SIZE must be set to size of AHB SRAM Bank 0" # error "CONFIG_RAM_SIZE must be set to size of AHB SRAM Bank 0"
# endif # endif
/* Now we can assign all of the memory regions for configuration B */ /* Now we can assign all of the memory regions for configuration B */
@@ -249,7 +249,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_DRAM_END - g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack;
} }
/************************************************************************ /************************************************************************
+17 -17
View File
@@ -149,12 +149,12 @@
/* Check common SRAM0 configuration */ /* Check common SRAM0 configuration */
#if CONFIG_DRAM_END > (SAM_INTSRAM0_BASE+SAM34_SRAM0_SIZE) #if CONFIG_RAM_END > (SAM_INTSRAM0_BASE+SAM34_SRAM0_SIZE)
# error "CONFIG_DRAM_END is beyond the end of SRAM0" # error "CONFIG_RAM_END is beyond the end of SRAM0"
# undef CONFIG_DRAM_END # undef CONFIG_RAM_END
# define CONFIG_DRAM_END (SAM_INTSRAM0_BASE+SAM34_SRAM0_SIZE) # define CONFIG_RAM_END (SAM_INTSRAM0_BASE+SAM34_SRAM0_SIZE)
#elif CONFIG_DRAM_END < (SAM_INTSRAM0_BASE+SAM34_SRAM0_SIZE) #elif CONFIG_RAM_END < (SAM_INTSRAM0_BASE+SAM34_SRAM0_SIZE)
# warning "CONFIG_DRAM_END is before end of SRAM0... not all of SRAM0 used" # warning "CONFIG_RAM_END is before end of SRAM0... not all of SRAM0 used"
#endif #endif
/**************************************************************************** /****************************************************************************
@@ -211,21 +211,21 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
*/ */
uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE; uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE;
size_t usize = CONFIG_DRAM_END - ubase; size_t usize = CONFIG_RAM_END - ubase;
int log2; int log2;
DEBUGASSERT(ubase < (uintptr_t)CONFIG_DRAM_END); DEBUGASSERT(ubase < (uintptr_t)CONFIG_RAM_END);
/* Adjust that size to account for MPU alignment requirements. /* Adjust that size to account for MPU alignment requirements.
* NOTE that there is an implicit assumption that the CONFIG_DRAM_END * NOTE that there is an implicit assumption that the CONFIG_RAM_END
* is aligned to the MPU requirement. * is aligned to the MPU requirement.
*/ */
log2 = (int)mpu_log2regionfloor(usize); log2 = (int)mpu_log2regionfloor(usize);
DEBUGASSERT((CONFIG_DRAM_END & ((1 << log2) - 1)) == 0); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2); usize = (1 << log2);
ubase = CONFIG_DRAM_END - usize; ubase = CONFIG_RAM_END - usize;
/* Return the user-space heap settings */ /* Return the user-space heap settings */
@@ -242,7 +242,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_DRAM_END - g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack;
#endif #endif
} }
@@ -265,21 +265,21 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size)
*/ */
uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE; uintptr_t ubase = (uintptr_t)USERSPACE->us_bssend + CONFIG_MM_KERNEL_HEAPSIZE;
size_t usize = CONFIG_DRAM_END - ubase; size_t usize = CONFIG_RAM_END - ubase;
int log2; int log2;
DEBUGASSERT(ubase < (uintptr_t)CONFIG_DRAM_END); DEBUGASSERT(ubase < (uintptr_t)CONFIG_RAM_END);
/* Adjust that size to account for MPU alignment requirements. /* Adjust that size to account for MPU alignment requirements.
* NOTE that there is an implicit assumption that the CONFIG_DRAM_END * NOTE that there is an implicit assumption that the CONFIG_RAM_END
* is aligned to the MPU requirement. * is aligned to the MPU requirement.
*/ */
log2 = (int)mpu_log2regionfloor(usize); log2 = (int)mpu_log2regionfloor(usize);
DEBUGASSERT((CONFIG_DRAM_END & ((1 << log2) - 1)) == 0); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2); usize = (1 << log2);
ubase = CONFIG_DRAM_END - usize; ubase = CONFIG_RAM_END - usize;
/* Return the kernel heap settings (i.e., the part of the heap region /* Return the kernel heap settings (i.e., the part of the heap region
* that was not dedicated to the user heap). * that was not dedicated to the user heap).
+6 -6
View File
@@ -524,7 +524,7 @@ config SAMA5_ISRAM_HEAP
*** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM INTERNAL SRAM!!** *** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM INTERNAL SRAM!!**
In this case, the remaining ISRAM will automatically be added to the In this case, the remaining ISRAM will automatically be added to the
heap (using DRAM_END). heap (using RAM_END).
config SAMA5_DDRCS_HEAP config SAMA5_DDRCS_HEAP
bool "Include DDR-SDRAM in heap" bool "Include DDR-SDRAM in heap"
@@ -538,7 +538,7 @@ config SAMA5_DDRCS_HEAP
*** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM SDRAM!!** *** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM SDRAM!!**
In this case, the remaining SDRAM will automatically be added to the In this case, the remaining SDRAM will automatically be added to the
heap (using DRAM_END) heap (using RAM_END)
config SAMA5_EBICS0_HEAP config SAMA5_EBICS0_HEAP
bool "Include SRAM/PSRAM in heap" bool "Include SRAM/PSRAM in heap"
@@ -552,7 +552,7 @@ config SAMA5_EBICS0_HEAP
*** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM CS0 SRAM!!** *** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM CS0 SRAM!!**
In this case, the remaining SRAM will automatically be added to the In this case, the remaining SRAM will automatically be added to the
heap (using DRAM_END). heap (using RAM_END).
config SAMA5_EBICS1_HEAP config SAMA5_EBICS1_HEAP
bool "Include SRAM/PSRAM in heap" bool "Include SRAM/PSRAM in heap"
@@ -566,7 +566,7 @@ config SAMA5_EBICS1_HEAP
*** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM CS1 SRAM!!** *** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM CS1 SRAM!!**
In this case, the remaining SRAM will automatically be added to the In this case, the remaining SRAM will automatically be added to the
heap (using DRAM_END). heap (using RAM_END).
config SAMA5_EBICS2_HEAP config SAMA5_EBICS2_HEAP
bool "Include SRAM/PSRAM in heap" bool "Include SRAM/PSRAM in heap"
@@ -580,7 +580,7 @@ config SAMA5_EBICS2_HEAP
*** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM CS2 SRAM!!** *** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM CS2 SRAM!!**
In this case, the remaining SRAM will automatically be added to the In this case, the remaining SRAM will automatically be added to the
heap (using DRAM_END). heap (using RAM_END).
config SAMA5_EBICS3_HEAP config SAMA5_EBICS3_HEAP
bool "Include SRAM/PSRAM in heap" bool "Include SRAM/PSRAM in heap"
@@ -591,7 +591,7 @@ config SAMA5_EBICS3_HEAP
*** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM CS3 SRAM!!** *** DO NOT SELECT THIS OPTION IF YOU ARE EXECUTING FROM CS3 SRAM!!**
In this case, the remaining SRAM will automatically be added to the In this case, the remaining SRAM will automatically be added to the
heap (using DRAM_END). heap (using RAM_END).
endmenu # Heap Configuration endmenu # Heap Configuration
endif # ARCH_CHIP_SAMA5 endif # ARCH_CHIP_SAMA5
+4 -4
View File
@@ -62,7 +62,7 @@
* *
* We cannot add the region if it is if we are executing from it! In that * We cannot add the region if it is if we are executing from it! In that
* case, the remainder of the memory will automatically be added to the heap * case, the remainder of the memory will automatically be added to the heap
* based on g_idle_topstack and CONFIG_DRAM_END * based on g_idle_topstack and CONFIG_RAM_END
*/ */
#if defined(CONFIG_SAMA5_BOOT_ISRAM) #if defined(CONFIG_SAMA5_BOOT_ISRAM)
@@ -108,17 +108,17 @@
* *
* - Internal SRAM is the "primary" RAM region in the case where we are * - Internal SRAM is the "primary" RAM region in the case where we are
* executing from internal SRAM. In that case, g_idle_topstack points * executing from internal SRAM. In that case, g_idle_topstack points
* into internal SRAM and CONFIG_DRAM_END is the end of internal SRAM. * into internal SRAM and CONFIG_RAM_END is the end of internal SRAM.
*/ */
#if defined(CONFIG_BOOT_RUNFROMISRAM) && defined(PGTABLE_IN_HIGHSRAM) && \ #if defined(CONFIG_BOOT_RUNFROMISRAM) && defined(PGTABLE_IN_HIGHSRAM) && \
(!defined(CONFIG_NUTTX_KERNEL) || !defined(CONFIG_MM_KERNEL_HEAP)) (!defined(CONFIG_NUTTX_KERNEL) || !defined(CONFIG_MM_KERNEL_HEAP))
# define ADJUSTED_RAM_END (CONFIG_DRAM_END-PGTABLE_SIZE) # define ADJUSTED_RAM_END (CONFIG_RAM_END-PGTABLE_SIZE)
/* Otherwise, the heap extends to the end of the primary RAM */ /* Otherwise, the heap extends to the end of the primary RAM */
#else #else
# define ADJUSTED_RAM_END CONFIG_DRAM_END # define ADJUSTED_RAM_END CONFIG_RAM_END
#endif #endif
/**************************************************************************** /****************************************************************************
+6 -6
View File
@@ -63,7 +63,7 @@
* following definitions must be provided to specify the size and * following definitions must be provided to specify the size and
* location of internal(system) SRAM: * location of internal(system) SRAM:
* *
* CONFIG_DRAM_END : End address (+1) of SRAM (F1 family only, the * CONFIG_RAM_END : End address (+1) of SRAM (F1 family only, the
* : F4 family uses the a priori end of SRAM) * : F4 family uses the a priori end of SRAM)
* *
* The F4 family also contains internal CCM SRAM. This SRAM is different * The F4 family also contains internal CCM SRAM. This SRAM is different
@@ -93,14 +93,14 @@
#endif #endif
/* The STM32L15xxx family has only internal SRAM. The heap is in one contiguous /* The STM32L15xxx family has only internal SRAM. The heap is in one contiguous
* block starting at g_idle_topstack and extending through CONFIG_DRAM_END. * block starting at g_idle_topstack and extending through CONFIG_RAM_END.
*/ */
#if defined(CONFIG_STM32_STM32L15XX) #if defined(CONFIG_STM32_STM32L15XX)
/* Set the end of system SRAM */ /* Set the end of system SRAM */
# define SRAM1_END CONFIG_DRAM_END # define SRAM1_END CONFIG_RAM_END
/* There is no FSMC (Other EnergyLite STM32's do have an FSMC, but not the STM32L15X */ /* There is no FSMC (Other EnergyLite STM32's do have an FSMC, but not the STM32L15X */
@@ -118,7 +118,7 @@
# endif # endif
/* For the STM312F10xxx family, all internal SRAM is in one contiguous block /* For the STM312F10xxx family, all internal SRAM is in one contiguous block
* starting at g_idle_topstack and extending through CONFIG_DRAM_END (my apologies * starting at g_idle_topstack and extending through CONFIG_RAM_END (my apologies
* for the bad naming). In addition, external FSMC SRAM may be available. * for the bad naming). In addition, external FSMC SRAM may be available.
*/ */
@@ -126,7 +126,7 @@
/* Set the end of system SRAM */ /* Set the end of system SRAM */
# define SRAM1_END CONFIG_DRAM_END # define SRAM1_END CONFIG_RAM_END
/* Check if external FSMC SRAM is provided */ /* Check if external FSMC SRAM is provided */
@@ -160,7 +160,7 @@
/* Set the end of system SRAM */ /* Set the end of system SRAM */
# define SRAM1_END CONFIG_DRAM_END # define SRAM1_END CONFIG_RAM_END
/* Set the range of CCM SRAM as well (although we may not use it) */ /* Set the range of CCM SRAM as well (although we may not use it) */
+1 -1
View File
@@ -78,7 +78,7 @@ extern volatile uint8_t *current_regs;
/* This is the beginning of heap as provided from up_head.S. This is the first /* This is the beginning of heap as provided from up_head.S. This is the first
* address in DRAM after the loaded program+bss+idle stack. The end of the * address in DRAM after the loaded program+bss+idle stack. The end of the
* heap is CONFIG_DRAM_END * heap is CONFIG_RAM_END
*/ */
extern uint16_t g_idle_topstack; extern uint16_t g_idle_topstack;
+1 -1
View File
@@ -76,7 +76,7 @@ extern volatile uint32_t *current_regs;
/* This is the beginning of heap as provided from up_head.S. This is the first /* This is the beginning of heap as provided from up_head.S. This is the first
* address in DRAM after the loaded program+bss+idle stack. The end of the * address in DRAM after the loaded program+bss+idle stack. The end of the
* heap is CONFIG_DRAM_END * heap is CONFIG_RAM_END
*/ */
extern uint32_t g_idle_topstack; extern uint32_t g_idle_topstack;
+1 -1
View File
@@ -83,5 +83,5 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{ {
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_DRAM_END - g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack;
} }
+1 -1
View File
@@ -82,5 +82,5 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{ {
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_DRAM_END - g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack;
} }
+1 -1
View File
@@ -138,7 +138,7 @@ extern volatile uint8_t *current_regs;
/* This is the beginning of heap as provided from processor-specific logic. /* This is the beginning of heap as provided from processor-specific logic.
* This is the first address in RAM after the loaded program+bss+idle stack. * This is the first address in RAM after the loaded program+bss+idle stack.
* The end of the heap is CONFIG_DRAM_END * The end of the heap is CONFIG_RAM_END
*/ */
extern uint16_t g_idle_topstack; extern uint16_t g_idle_topstack;
+1 -1
View File
@@ -83,5 +83,5 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{ {
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_DRAM_END - g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack;
} }
+1 -1
View File
@@ -135,7 +135,7 @@ extern volatile uint32_t *current_regs;
/* This is the beginning of heap as provided from up_head.S. This is the /* This is the beginning of heap as provided from up_head.S. This is the
* first address in DRAM after the loaded program+bss+idle stack. The end * first address in DRAM after the loaded program+bss+idle stack. The end
* of the heap is CONFIG_DRAM_END * of the heap is CONFIG_RAM_END
*/ */
extern uint32_t g_idle_topstack; extern uint32_t g_idle_topstack;
+1 -1
View File
@@ -82,5 +82,5 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{ {
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_DRAM_END - g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack;
} }
+1 -1
View File
@@ -137,7 +137,7 @@ extern volatile uint32_t *current_regs;
/* This is the beginning of heap as provided from up_head.S. /* This is the beginning of heap as provided from up_head.S.
* This is the first address in DRAM after the loaded * This is the first address in DRAM after the loaded
* program+bss+idle stack. The end of the heap is * program+bss+idle stack. The end of the heap is
* CONFIG_DRAM_END * CONFIG_RAM_END
*/ */
extern uint32_t g_idle_topstack; extern uint32_t g_idle_topstack;
+1 -1
View File
@@ -83,5 +83,5 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
{ {
up_ledon(LED_HEAPALLOCATE); up_ledon(LED_HEAPALLOCATE);
*heap_start = (FAR void*)g_idle_topstack; *heap_start = (FAR void*)g_idle_topstack;
*heap_size = CONFIG_DRAM_END - g_idle_topstack; *heap_size = CONFIG_RAM_END - g_idle_topstack;
} }
+1 -1
View File
@@ -137,7 +137,7 @@ extern volatile uint32_t *current_regs;
/* This is the beginning of heap as provided from up_head.S. This is the first /* This is the beginning of heap as provided from up_head.S. This is the first
* address in DRAM after the loaded program+bss+idle stack. The end of the * address in DRAM after the loaded program+bss+idle stack. The end of the
* heap is CONFIG_DRAM_END * heap is CONFIG_RAM_END
*/ */
extern uint32_t g_idle_topstack; extern uint32_t g_idle_topstack;
+1 -1
View File
@@ -122,7 +122,7 @@ $(TOPDIR)/lib/$(SDCCLIB): $(SDCC_LIBDIR)/$(SDCCLIB)
# IDLE thread stack # IDLE thread stack
asm_mem.h: asm_mem.h:
@echo " CONFIG_STACK_END == ($(CONFIG_DRAM_SIZE) - 1)" >> asm_mem.h @echo " CONFIG_STACK_END == ($(CONFIG_RAM_SIZE) - 1)" >> asm_mem.h
@echo " CONFIG_STACK_BASE == (CONFIG_STACK_END - $(CONFIG_IDLETHREAD_STACKSIZE))" >> asm_mem.h @echo " CONFIG_STACK_BASE == (CONFIG_STACK_END - $(CONFIG_IDLETHREAD_STACKSIZE))" >> asm_mem.h
# Combine all objects in this directory into a library # Combine all objects in this directory into a library
+1 -1
View File
@@ -122,7 +122,7 @@ $(TOPDIR)\lib\$(SDCCLIB): $(SDCC_LIBDIR)\$(SDCCLIB)
# IDLE thread stack # IDLE thread stack
asm_mem.h: asm_mem.h:
@echo CONFIG_STACK_END == ($(CONFIG_DRAM_SIZE) - 1)>>asm_mem.h @echo CONFIG_STACK_END == ($(CONFIG_RAM_SIZE) - 1)>>asm_mem.h
@echo CONFIG_STACK_BASE == (CONFIG_STACK_END - $(CONFIG_IDLETHREAD_STACKSIZE))>>asm_mem.h @echo CONFIG_STACK_BASE == (CONFIG_STACK_END - $(CONFIG_IDLETHREAD_STACKSIZE))>>asm_mem.h
# Combine all objects in this directory into a library # Combine all objects in this directory into a library
+1 -1
View File
@@ -48,7 +48,7 @@
/* Locate the IDLE thread stack at the end of RAM. */ /* Locate the IDLE thread stack at the end of RAM. */
#define CONFIG_STACK_END CONFIG_DRAM_SIZE #define CONFIG_STACK_END CONFIG_RAM_SIZE
#define CONFIG_STACK_BASE (CONFIG_STACK_END - CONFIG_IDLETHREAD_STACKSIZE) #define CONFIG_STACK_BASE (CONFIG_STACK_END - CONFIG_IDLETHREAD_STACKSIZE)
/* The heap then extends from the linker determined beginning of the heap (s__HEAP). /* The heap then extends from the linker determined beginning of the heap (s__HEAP).
+1 -1
View File
@@ -48,7 +48,7 @@
/* Locate the IDLE thread stack at the end of RAM. */ /* Locate the IDLE thread stack at the end of RAM. */
#define CONFIG_STACK_END CONFIG_DRAM_SIZE #define CONFIG_STACK_END CONFIG_RAM_SIZE
#define CONFIG_STACK_BASE (CONFIG_STACK_END - CONFIG_IDLETHREAD_STACKSIZE) #define CONFIG_STACK_BASE (CONFIG_STACK_END - CONFIG_IDLETHREAD_STACKSIZE)
/* The heap then extends from the linker determined beginning of the heap (s__HEAP). /* The heap then extends from the linker determined beginning of the heap (s__HEAP).