diff --git a/cpu/i386/paging.c b/cpu/i386/paging.c index a7a2c48..7651b4a 100644 --- a/cpu/i386/paging.c +++ b/cpu/i386/paging.c @@ -95,6 +95,28 @@ void alloc_pages_virt(int num_pages,void* addr) { map_pages(addr,phys_addr,num_pages,1,1); } +void* new_address_space() { + void* dir=pmem_alloc(1); + smap_page_tables[0]=((uint32_t)dir)|0x3; + for (uint32_t i=0;i