- remove typo
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@340 315a16e6-25f9-4109-90ae-ca3045a26c18
This commit is contained in:
parent
2dd61c1da6
commit
2127c42070
1 changed files with 17 additions and 1 deletions
|
@ -36,7 +36,7 @@
|
|||
*
|
||||
* 0x00000000 - 0x000FFFFF: reserved for IO devices
|
||||
* 0x00100000 - 0x0DEADFFF: Kernel (size depends on the configuration)
|
||||
* 0xDEAE0000 - 0x3FFFEFFF: Kernel heap
|
||||
* 0x0DEAE000 - 0x3FFFEFFF: Kernel heap
|
||||
* 0x3FFFF000 - 0x3FFFFFFF: Page Table are mapped in this region
|
||||
* (The first 256 entries belongs to kernel space)
|
||||
*/
|
||||
|
@ -64,6 +64,22 @@ int get_kernel_pgd(task_t* task)
|
|||
return 0;
|
||||
}
|
||||
|
||||
page_dir_t* create_pgd(void)
|
||||
{
|
||||
page_dir_t* pgd;
|
||||
uint32_t i;
|
||||
|
||||
pgd = kmalloc(sizeof(page_dir_t));
|
||||
if (!pgd)
|
||||
return NULL;
|
||||
memset(pgd, 0, sizeof(page_dir_t));
|
||||
|
||||
for(i=0; i<KERNEL_SPACE/(1024*4096); i++)
|
||||
pgd->entries[i] = boot_pgd.entries[i];
|
||||
|
||||
return pgd;
|
||||
}
|
||||
|
||||
size_t virt_to_phys(task_t* task, size_t viraddr)
|
||||
{
|
||||
uint32_t index1, index2;
|
||||
|
|
Loading…
Add table
Reference in a new issue