1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Add a CTASSERT that KERNBASE is valid. This is usually messed up by an

invalid KVA_PAGES, so add a pointer to there.
This commit is contained in:
Peter Wemm 2008-01-14 22:51:43 +00:00
parent dd9d15f294
commit a658a1e0a5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175328

View File

@ -291,6 +291,13 @@ static void *pmap_pdpt_allocf(uma_zone_t zone, int bytes, u_int8_t *flags, int w
CTASSERT(1 << PDESHIFT == sizeof(pd_entry_t));
CTASSERT(1 << PTESHIFT == sizeof(pt_entry_t));
/*
* If you get an error here, then you set KVA_PAGES wrong! See the
* description of KVA_PAGES in sys/i386/include/pmap.h. It must be
* multiple of 4 for a normal kernel, or a multiple of 8 for a PAE.
*/
CTASSERT(KERNBASE % (1 << 24) == 0);
/*
* Move the kernel virtual free pointer to the next
* 4MB. This is used to help improve performance