mirror of
https://github.com/apache/nuttx.git
synced 2026-08-30 13:43:09 +00:00
Bugfixes.. still integrating SAMA5 ELF with address environment
This commit is contained in:
parent
9857f09baf
commit
cfa8174fe4
1 changed files with 4 additions and 4 deletions
|
|
@ -213,7 +213,7 @@ int up_addrenv_create(size_t textsize, size_t datasize,
|
|||
{
|
||||
/* Allocate one physical page */
|
||||
|
||||
paddr = mm_pgalloc(ARCH_SECT2PG(1));
|
||||
paddr = mm_pgalloc(1);
|
||||
if (!paddr)
|
||||
{
|
||||
ret = -ENOMEM;
|
||||
|
|
@ -226,7 +226,7 @@ int up_addrenv_create(size_t textsize, size_t datasize,
|
|||
/* Temporarily map the page into the virtual address space */
|
||||
|
||||
flags = irqsave();
|
||||
l1save = mmu_l1_getentry(vaddr);
|
||||
l1save = mmu_l1_getentry(ARCH_SCRATCH_VBASE);
|
||||
set_l1_entry(ARCH_SCRATCH_VBASE, paddr);
|
||||
l2table = (FAR uint32_t *)ARCH_SCRATCH_VBASE;
|
||||
|
||||
|
|
@ -256,7 +256,7 @@ int up_addrenv_create(size_t textsize, size_t datasize,
|
|||
{
|
||||
/* Allocate one physical page */
|
||||
|
||||
paddr = mm_pgalloc(ARCH_SECT2PG(1));
|
||||
paddr = mm_pgalloc(1);
|
||||
if (!paddr)
|
||||
{
|
||||
ret = -ENOMEM;
|
||||
|
|
@ -269,7 +269,7 @@ int up_addrenv_create(size_t textsize, size_t datasize,
|
|||
/* Temporarily map the page into the virtual address space */
|
||||
|
||||
flags = irqsave();
|
||||
l1save = mmu_l1_getentry(vaddr);
|
||||
l1save = mmu_l1_getentry(ARCH_SCRATCH_VBASE);
|
||||
set_l1_entry(ARCH_SCRATCH_VBASE, paddr);
|
||||
l2table = (FAR uint32_t *)ARCH_SCRATCH_VBASE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue