summaryrefslogtreecommitdiffstats
path: root/sys/arm/mv/mv_machdep.c
diff options
context:
space:
mode:
authorraj <raj@FreeBSD.org>2010-07-19 19:19:33 +0000
committerraj <raj@FreeBSD.org>2010-07-19 19:19:33 +0000
commit38ed317cdb7029de69bac81c9a5f8ea9bc43e4b3 (patch)
treebc608413bce80560ae29cdac2557c52ff6648027 /sys/arm/mv/mv_machdep.c
parent08397bfd61943e5715d578fd3dda33c12d6c3ba7 (diff)
downloadFreeBSD-src-38ed317cdb7029de69bac81c9a5f8ea9bc43e4b3.zip
FreeBSD-src-38ed317cdb7029de69bac81c9a5f8ea9bc43e4b3.tar.gz
Now that we are fully FDT-driven on MRVL platforms, remove PHYSMEM_SIZE option.
Diffstat (limited to 'sys/arm/mv/mv_machdep.c')
-rw-r--r--sys/arm/mv/mv_machdep.c30
1 files changed, 3 insertions, 27 deletions
diff --git a/sys/arm/mv/mv_machdep.c b/sys/arm/mv/mv_machdep.c
index 72cc62b..b2ec33b 100644
--- a/sys/arm/mv/mv_machdep.c
+++ b/sys/arm/mv/mv_machdep.c
@@ -153,7 +153,7 @@ static int availmem_regions_sz;
static void print_kenv(void);
static void print_kernel_section_addr(void);
-static void physmap_init(int);
+static void physmap_init(void);
static int platform_devmap_init(void);
static int platform_mpp_init(void);
@@ -202,7 +202,7 @@ print_kernel_section_addr(void)
}
static void
-physmap_init(int hardcoded)
+physmap_init(void)
{
int i, j, cnt;
vm_offset_t phys_kernelend, kernload;
@@ -213,22 +213,6 @@ physmap_init(int hardcoded)
kernload = KERNPHYSADDR;
/*
- * Use hardcoded physical addresses if we don't use memory regions
- * from metadata.
- */
- if (hardcoded) {
- phys_avail[0] = 0;
- phys_avail[1] = kernload;
-
- phys_avail[2] = phys_kernelend;
- phys_avail[3] = PHYSMEM_SIZE;
-
- phys_avail[4] = 0;
- phys_avail[5] = 0;
- return;
- }
-
- /*
* Remove kernel physical address range from avail
* regions list. Page align all regions.
* Non-page aligned memory isn't very interesting to us.
@@ -352,12 +336,6 @@ initarm(void *mdp, void *unused __unused)
} else {
/* Fall back to hardcoded metadata. */
lastaddr = fake_preload_metadata();
-
- /*
- * Assume a single memory region of size specified in board
- * configuration file.
- */
- memsize = PHYSMEM_SIZE;
}
#if defined(FDT_DTB_STATIC)
@@ -602,10 +580,8 @@ initarm(void *mdp, void *unused __unused)
/*
* Prepare map of physical memory regions available to vm subsystem.
- * If metadata pointer doesn't point to a valid address, use hardcoded
- * values.
*/
- physmap_init((mdp != NULL) ? 0 : 1);
+ physmap_init();
/* Do basic tuning, hz etc */
init_param1();
OpenPOWER on IntegriCloud