mirror of
https://github.com/drasko/codezero.git
synced 2026-04-30 23:51:30 +02:00
Changed all pager hardcoded value assumptions, too.
Not tested.
This commit is contained in:
@@ -113,8 +113,8 @@ int pager_setup_task(void)
|
||||
task->map_end = PAGER_MMAP_END;
|
||||
|
||||
/* Task's total map boundaries */
|
||||
task->start = task->text_start;
|
||||
task->end = 0xF0000000;
|
||||
task->start = __pfn_to_addr(cont_mem_regions.pager->start);
|
||||
task->end = __pfn_to_addr(cont_mem_regions.pager->end);
|
||||
|
||||
/*
|
||||
* Map all regions as anonymous (since no real
|
||||
@@ -142,7 +142,8 @@ int pager_setup_task(void)
|
||||
* microkernel for this pager. Ensure that we also get
|
||||
* the same from our internal utcb bookkeeping.
|
||||
*/
|
||||
BUG_ON(task->utcb_address != __pfn_to_addr(cont_mem_regions.utcb->start));
|
||||
BUG_ON(task->utcb_address !=
|
||||
__pfn_to_addr(cont_mem_regions.utcb->start));
|
||||
|
||||
/* Pager must prefault its utcb */
|
||||
prefault_page(task, task->utcb_address,
|
||||
|
||||
@@ -57,10 +57,11 @@ static struct pager_virtual_address_id_pool {
|
||||
*/
|
||||
int pager_address_pool_init(void)
|
||||
{
|
||||
address_pool_init_with_idpool(&pager_vaddr_pool,
|
||||
(struct id_pool *)
|
||||
&pager_virtual_address_id_pool,
|
||||
PAGER_MMAP_END, 0xF0000000);
|
||||
address_pool_init_with_idpool(&pager_vaddr_pool,
|
||||
(struct id_pool *)
|
||||
&pager_virtual_address_id_pool,
|
||||
PAGER_MMAP_END,
|
||||
__pfn_to_addr(cont_mem_regions.pager->end));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user