mirror of https://github.com/l4ka/pistachio.git
Fixed double-allocation of page for UTCB pointers. Thanks to M. Kroll
This commit is contained in:
parent
372c86ac62
commit
8220bfaf0b
|
@ -706,11 +706,6 @@ void SECTION(".init.memory") space_t::init_kernel_mappings()
|
||||||
* each processor gets a full cache line to avoid bouncing
|
* each processor gets a full cache line to avoid bouncing
|
||||||
* page is user-writable and global
|
* page is user-writable and global
|
||||||
*/
|
*/
|
||||||
EXTERN_KMEM_GROUP(kmem_misc);
|
|
||||||
add_mapping((addr_t)UTCB_MAPPING,
|
|
||||||
virt_to_phys(kmem.alloc(kmem_misc, X86_PAGE_SIZE)),
|
|
||||||
pgent_t::size_4k, true, false, true);
|
|
||||||
|
|
||||||
EXTERN_KMEM_GROUP(kmem_misc);
|
EXTERN_KMEM_GROUP(kmem_misc);
|
||||||
utcb_page = kmem.alloc(kmem_misc, X86_PAGE_SIZE);
|
utcb_page = kmem.alloc(kmem_misc, X86_PAGE_SIZE);
|
||||||
ASSERT(utcb_page);
|
ASSERT(utcb_page);
|
||||||
|
|
Loading…
Reference in New Issue