Allow up to 2MB for the kernel, since it's already over 1MB.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43150 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2011-11-03 02:48:33 +00:00
parent e88ace8082
commit a4b79a647b

View File

@ -84,7 +84,7 @@
#define VBR_PAGE_OFFSET 1024
static const uint32 kDefaultPageTableFlags = 0x07; // present, user, R/W
static const size_t kMaxKernelSize = 0x100000; // 1 MB for the kernel
static const size_t kMaxKernelSize = 0x200000; // 2 MB for the kernel
// working page directory and page table
addr_t gPageRoot = 0;
@ -377,8 +377,7 @@ mmu_free(void *virtualAddress, size_t size)
// get number of pages to map
// is the address within the valid range?
if (address < KERNEL_BASE
|| address + size >= KERNEL_BASE + kMaxKernelSize) {
if (address < KERNEL_BASE) {
panic("mmu_free: asked to unmap out of range region (%p, size %lx)\n",
(void *)address, size);
}