[blackfin] memory layout related compile fixes
This commit is contained in:
parent
b403f8d6f3
commit
2af6483cbf
|
@ -3,6 +3,8 @@ config BLACKFIN
|
|||
bool
|
||||
select HAS_KALLSYMS
|
||||
select HAS_MODULES
|
||||
select HAVE_CONFIGURABLE_MEMORY_LAYOUT
|
||||
select HAVE_CONFIGURABLE_TEXT_BASE
|
||||
default y
|
||||
|
||||
config BF561
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include <asm/blackfin.h>
|
||||
#include <asm/cpu/defBF561_extn.h>
|
||||
#include <asm/cpu/defBF561.h>
|
||||
#include <asm-generic/memory_layout.h>
|
||||
|
||||
.section ".text_entry","ax"
|
||||
|
||||
|
@ -173,8 +174,9 @@ loop1:
|
|||
/*
|
||||
* configure STACK
|
||||
*/
|
||||
r0.h = hi(CONFIG_STACKBASE);
|
||||
r0.l = lo(CONFIG_STACKBASE);
|
||||
|
||||
r0.h = hi(STACK_BASE);
|
||||
r0.l = lo(STACK_BASE);
|
||||
sp = r0;
|
||||
fp = sp;
|
||||
|
||||
|
|
|
@ -33,11 +33,12 @@
|
|||
#include <environment.h>
|
||||
#include <mem_malloc.h>
|
||||
#include <asm/cpu.h>
|
||||
#include <asm-generic/memory_layout.h>
|
||||
|
||||
int blackfin_mem_malloc_init(void)
|
||||
{
|
||||
mem_malloc_init((void *)(CONFIG_MALLOC_BASE),
|
||||
(void *)(CONFIG_MALLOC_BASE + CONFIG_MALLOC_LEN));
|
||||
mem_malloc_init((void *)(MALLOC_BASE),
|
||||
(void *)(MALLOC_BASE + MALLOC_SIZE));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue