Fill in dump_avail[] before pmap_boostrap() is called so that

ARM_USE_SMALL_ALLOC work.
This commit is contained in:
Olivier Houchard 2006-08-27 13:23:51 +00:00
parent c86eb67f3d
commit 2df5885cb9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161670

View File

@ -444,6 +444,10 @@ initarm(void *arg, void *arg2)
pmap_curmaxkvaddr = afterkern + PAGE_SIZE;
dump_avail[0] = 0xa0000000;
dump_avail[1] = 0xa0000000 + memsize;
dump_avail[2] = 0;
dump_avail[3] = 0;
pmap_bootstrap(pmap_curmaxkvaddr,
0xd0000000, &kernel_l1pt);
msgbufp = (void*)msgbufpv.pv_va;
@ -462,10 +466,6 @@ initarm(void *arg, void *arg2)
phys_avail[i++] = trunc_page(0xa0000000 + memsize - 1);
phys_avail[i++] = 0;
phys_avail[i] = 0;
dump_avail[0] = 0xa0000000;
dump_avail[1] = 0xa0000000 + memsize;
dump_avail[2] = 0;
dump_avail[3] = 0;
/* Do basic tuning, hz etc */
init_param1();