Could overwrite the memory that the SMP code is using for the trampoline
code/stack with page tables. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14498 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -61,7 +61,8 @@ struct extended_memory {
|
|||||||
|
|
||||||
static const uint32 kDefaultPageTableFlags = 0x07; // present, user, R/W
|
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 = 0x100000; // 1 MB for the kernel
|
||||||
static const uint32 kPageTableRegionEnd = 0xa0000;
|
static const uint32 kPageTableRegionEnd = 0x9e000;
|
||||||
|
// we need to reserve 2 pages for the SMP trampoline code
|
||||||
|
|
||||||
// working page directory and page table
|
// working page directory and page table
|
||||||
static uint32 *sPageDirectory = 0;
|
static uint32 *sPageDirectory = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user