Date: Tue, 25 Nov 2008 00:14:14 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185266 - head/sys/arm/at91 Message-ID: <200811250014.mAP0EEfp002294@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Tue Nov 25 00:14:14 2008 New Revision: 185266 URL: http://svn.freebsd.org/changeset/base/185266 Log: Replace three magic constants with L1_S_SIZE, since that's what is really meant in those places. Modified: head/sys/arm/at91/kb920x_machdep.c Modified: head/sys/arm/at91/kb920x_machdep.c ============================================================================== --- head/sys/arm/at91/kb920x_machdep.c Tue Nov 25 00:13:26 2008 (r185265) +++ head/sys/arm/at91/kb920x_machdep.c Tue Nov 25 00:14:14 2008 (r185266) @@ -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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811250014.mAP0EEfp002294>