Remove references to PHYSADDR where it's used only in debugging output,
and where the code that references it can safely be elided if it's not defined (meaning the code is used for legacy arm platforms that still define the compile-time PHYSADDR but not on newer systems that calculate the value at runtime).
This commit is contained in:
parent
369f5bceaa
commit
667a1295b3
@ -189,7 +189,7 @@ _startC(void)
|
||||
int physaddr = KERNPHYSADDR;
|
||||
int tmp1;
|
||||
unsigned int sp = ((unsigned int)&_end & ~3) + 4;
|
||||
#if defined(FLASHADDR) && defined(LOADERRAMADDR)
|
||||
#if defined(FLASHADDR) && defined(PHYSADDR) && defined(LOADERRAMADDR)
|
||||
unsigned int pc;
|
||||
|
||||
__asm __volatile("mov %0, pc\n"
|
||||
|
@ -1312,8 +1312,6 @@ pmap_init(void)
|
||||
vm_size_t s;
|
||||
int i, pv_npg;
|
||||
|
||||
PDEBUG(1, printf("pmap_init: phys_start = %08x\n", PHYSADDR));
|
||||
|
||||
l2zone = uma_zcreate("L2 Table", L2_TABLE_SIZE_REAL, pmap_l2ptp_ctor,
|
||||
NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_VM | UMA_ZONE_NOFREE);
|
||||
l2table_zone = uma_zcreate("L2 Table", sizeof(struct l2_dtable), NULL,
|
||||
|
@ -1826,8 +1826,6 @@ pmap_init(void)
|
||||
{
|
||||
int shpgperproc = PMAP_SHPGPERPROC;
|
||||
|
||||
PDEBUG(1, printf("pmap_init: phys_start = %08x\n", PHYSADDR));
|
||||
|
||||
l2zone = uma_zcreate("L2 Table", L2_TABLE_SIZE_REAL, pmap_l2ptp_ctor,
|
||||
NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_VM | UMA_ZONE_NOFREE);
|
||||
l2table_zone = uma_zcreate("L2 Table", sizeof(struct l2_dtable), NULL,
|
||||
|
@ -939,7 +939,7 @@ END(memmove)
|
||||
ENTRY(memcpy)
|
||||
/* save leaf functions having to store this away */
|
||||
/* Do not check arm_memcpy if we're running from flash */
|
||||
#ifdef FLASHADDR
|
||||
#if defined(FLASHADDR) && defined(PHYSADDR)
|
||||
#if FLASHADDR > PHYSADDR
|
||||
ldr r3, =FLASHADDR
|
||||
cmp r3, pc
|
||||
|
Loading…
x
Reference in New Issue
Block a user