diff options
| author | Miguel <m.i@gmx.at> | 2018-09-12 02:10:11 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-12 02:10:11 +0200 |
| commit | a3ee159ebfd2d088432e386e8809840784f697e7 (patch) | |
| tree | 9ecfc506bb65ec982aae47f161afa1777359d3f7 /kernel/vmem.c | |
| parent | c9351caacd49c8442cc586f9e53a2dcc49a004aa (diff) | |
working on smp scheduler
Diffstat (limited to 'kernel/vmem.c')
| -rw-r--r-- | kernel/vmem.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/vmem.c b/kernel/vmem.c index 3da35ce..c004f9e 100644 --- a/kernel/vmem.c +++ b/kernel/vmem.c @@ -243,7 +243,7 @@ static void vmem_add_generic(pdirectory* dir,uint32_t phys,uint32_t virt,uint32_ if(alloc) { phys=mem_alloc_block(); // get free space from the memory manager - klog("allocated physical at 0x%08X",phys); +// klog("allocated physical at 0x%08X",phys); } //create a new page @@ -297,9 +297,11 @@ pdirectory* vmem_kernel_dir() vmem_add_remap(dir,mod_start,VMEM_EXT2_RAMIMAGE,1024*8);//32megs for ramimage: TODO: check if enough? vmem_add_alloc(dir,VMEM_CPU_PRIVATE,4); - vmem_add_alloc(dir,VMEM_CPU_STACK_TOP-4096*4,4); + vmem_add_alloc(dir,VMEM_USER_PROG,1024*2); + vmem_add_alloc(dir,VMEM_USER_STACK_TOP-4096*4,4); + return dir; } @@ -730,4 +732,3 @@ pdirectory* vmem_new_space_dir(pdirectory *copy_dir,bool stack_only) x86_paging_enable(); return dir; } - |
