Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
67900bea
Commit
67900bea
authored
8 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
LP43 Heap: REALLY eliminate the warning this time
parent
d5acc120
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/arm/src/lpc43xx/lpc43_allocateheap.c
+15
-1
15 additions, 1 deletion
arch/arm/src/lpc43xx/lpc43_allocateheap.c
with
15 additions
and
1 deletion
arch/arm/src/lpc43xx/lpc43_allocateheap.c
+
15
−
1
View file @
67900bea
...
...
@@ -181,6 +181,7 @@
#undef MM_USE_EXTSDRAM1
#undef MM_USE_EXTSDRAM2
#undef MM_USE_EXTSDRAM3
#undef MM_HAVE_REGION
#ifndef CONFIG_LPC43_BOOT_SRAM
...
...
@@ -305,6 +306,14 @@
# define MM_EXTSDRAM3_SIZE CONFIG_LPC43_EXTSDRAM3_SIZE
#endif
/* CONFIG_LPC43_EXTSDRAM3_SIZE */
#if CONFIG_MM_REGIONS > 1 && \
(defined(MM_USE_LOCSRAM_BANK1) || defined(MM_USE_AHBSRAM_BANK0) || \
defined(MM_USE_AHBSRAM_BANK1) || defined(MM_USE_AHBSRAM_BANK2) || \
defined(MM_USE_EXTSDRAM0) || defined(MM_USE_EXTSDRAM1) || \
defined(MM_USE_EXTSDRAM2) || defined(MM_USE_EXTSDRAM3))
# define MM_HAVE_REGION 1
#endif
/****************************************************************************
* Private Data
****************************************************************************/
...
...
@@ -324,13 +333,16 @@
*/
const
uint32_t
g_idle_topstack
=
(
uint32_t
)
&
_ebss
+
CONFIG_IDLETHREAD_STACKSIZE
;
#ifdef MM_HAVE_REGION
static
uint32_t
g_mem_region_next
=
0
;
#endif
/****************************************************************************
* Private Functions
****************************************************************************/
#if
CONFIG_MM
_REGION
S > 1
#if
def MM_HAVE
_REGION
static
void
mem_addregion
(
FAR
void
*
region_start
,
size_t
region_size
)
{
if
(
g_mem_region_next
<=
CONFIG_MM_REGIONS
)
...
...
@@ -381,6 +393,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
#if CONFIG_MM_REGIONS > 1
void
up_addregion
(
void
)
{
#ifdef MM_HAVE_REGION
/* start from second region */
g_mem_region_next
=
2
;
...
...
@@ -416,5 +429,6 @@ void up_addregion(void)
# ifdef MM_USE_EXTSDRAM3
mem_addregion
((
FAR
void
*
)
MM_EXTSDRAM3_REGION
,
MM_EXTSDRAM3_SIZE
);
# endif
#endif
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment