diff options
author | ian <ian@FreeBSD.org> | 2014-02-09 01:21:30 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-02-09 01:21:30 +0000 |
commit | 0a15dbb231ef45e0d61995ff08d080a85ea69172 (patch) | |
tree | 0eff37ba787fd6a17d552d58ecd6c682d97b8a62 /sys/arm/at91/at91_machdep.c | |
parent | 30d95028f0a5b80653b6cba27633bbdca56f156b (diff) | |
download | FreeBSD-src-0a15dbb231ef45e0d61995ff08d080a85ea69172.zip FreeBSD-src-0a15dbb231ef45e0d61995ff08d080a85ea69172.tar.gz |
Replace compile-time constant KERNPHYSADDR with abp_physaddr (determined
at runtime) where it's trivial to do so. Another breadcrumb on the trail
to a kernel that can be loaded at any 1MB boundary.
Diffstat (limited to 'sys/arm/at91/at91_machdep.c')
-rw-r--r-- | sys/arm/at91/at91_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/at91/at91_machdep.c b/sys/arm/at91/at91_machdep.c index d9d26d8..a6fef8b 100644 --- a/sys/arm/at91/at91_machdep.c +++ b/sys/arm/at91/at91_machdep.c @@ -471,7 +471,7 @@ initarm(struct arm_boot_params *abp) /* Define a macro to simplify memory allocation */ #define valloc_pages(var, np) \ alloc_pages((var).pv_va, (np)); \ - (var).pv_pa = (var).pv_va + (KERNPHYSADDR - KERNVIRTADDR); + (var).pv_pa = (var).pv_va + (abp->abp_physaddr - KERNVIRTADDR); #define alloc_pages(var, np) \ (var) = freemempos; \ @@ -491,7 +491,7 @@ initarm(struct arm_boot_params *abp) L2_TABLE_SIZE_REAL; kernel_pt_table[i].pv_pa = kernel_pt_table[i].pv_va - KERNVIRTADDR + - KERNPHYSADDR; + abp->abp_physaddr; } } /* |