Fix a harmless bug in the way we allocate the early PTEs.

This commit is contained in:
Olivier Houchard 2005-12-09 23:54:50 +00:00
parent 527962c8c7
commit e89ab9292f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153278

View File

@ -94,6 +94,7 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h>
#include <sys/reboot.h>
#undef DDB
#include <arm/xscale/i80321/i80321reg.h>
#include <arm/xscale/i80321/i80321var.h>
#include <arm/xscale/i80321/iq80321reg.h>
@ -277,7 +278,7 @@ initarm(void *arg, void *arg2)
valloc_pages(kernel_pt_table[loop],
L2_TABLE_SIZE / PAGE_SIZE);
} else {
kernel_pt_table[loop].pv_pa = freemempos -
kernel_pt_table[loop].pv_pa = freemempos +
(loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL)) *
L2_TABLE_SIZE_REAL;
kernel_pt_table[loop].pv_va =
@ -285,8 +286,6 @@ initarm(void *arg, void *arg2)
}
i++;
}
freemempos -= 2 * PAGE_SIZE;
freemem_pt = freemempos;
freemempos = 0xa0100000;
/*