diff options
author | imp <imp@FreeBSD.org> | 2008-11-25 00:14:14 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-11-25 00:14:14 +0000 |
commit | 3dfcd1739aa71bc101cbb5858ce0cff4c471a3f2 (patch) | |
tree | e92d6834e33de5e9f8d96f37d53f98ac69a176ad /sys/arm | |
parent | 798ce0024e2d4a7486254c54fa9be89c1a0b9771 (diff) | |
download | FreeBSD-src-3dfcd1739aa71bc101cbb5858ce0cff4c471a3f2.zip FreeBSD-src-3dfcd1739aa71bc101cbb5858ce0cff4c471a3f2.tar.gz |
Replace three magic constants with L1_S_SIZE, since that's what is
really meant in those places.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/at91/kb920x_machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm/at91/kb920x_machdep.c b/sys/arm/at91/kb920x_machdep.c index ace4cfb..6867262 100644 --- a/sys/arm/at91/kb920x_machdep.c +++ b/sys/arm/at91/kb920x_machdep.c @@ -312,7 +312,7 @@ initarm(void *arg, void *arg2) pmap_link_l2pt(l1pagetable, ARM_VECTORS_HIGH, &kernel_pt_table[KERNEL_PT_SYS]); for (i = 0; i < KERNEL_PT_KERN_NUM; i++) - pmap_link_l2pt(l1pagetable, KERNBASE + i * 0x100000, + pmap_link_l2pt(l1pagetable, KERNBASE + i * L1_S_SIZE, &kernel_pt_table[KERNEL_PT_KERN + i]); pmap_map_chunk(l1pagetable, KERNBASE, PHYSADDR, (((uint32_t)lastaddr - KERNBASE) + PAGE_SIZE) & ~(PAGE_SIZE - 1), @@ -320,7 +320,7 @@ initarm(void *arg, void *arg2) afterkern = round_page((lastaddr + L1_S_SIZE) & ~(L1_S_SIZE - 1)); for (i = 0; i < KERNEL_PT_AFKERNEL_NUM; i++) { - pmap_link_l2pt(l1pagetable, afterkern + i * 0x00100000, + pmap_link_l2pt(l1pagetable, afterkern + i * L1_S_SIZE, &kernel_pt_table[KERNEL_PT_AFKERNEL + i]); } @@ -406,7 +406,7 @@ initarm(void *arg, void *arg2) arm_vector_init(ARM_VECTORS_HIGH, ARM_VEC_ALL); - pmap_curmaxkvaddr = afterkern + 0x100000 * (KERNEL_PT_KERN_NUM - 1); + pmap_curmaxkvaddr = afterkern + L1_S_SIZE * (KERNEL_PT_KERN_NUM - 1); /* * ARM_USE_SMALL_ALLOC uses dump_avail, so it must be filled before * calling pmap_bootstrap. |