kern

diff src/vm.h @ 47:f65b348780e3

continuing with the process implementation. not done yet, panics.
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 28 Jul 2011 05:43:04 +0300
parents 5f6c5751ae05
children 88a6c4e192f9
line diff
     1.1 --- a/src/vm.h	Thu Jul 28 05:33:59 2011 +0300
     1.2 +++ b/src/vm.h	Thu Jul 28 05:43:04 2011 +0300
     1.3 @@ -4,6 +4,8 @@
     1.4  #include <stdlib.h>
     1.5  #include "mboot.h"
     1.6  
     1.7 +#define KMEM_START		0xc0000000
     1.8 +
     1.9  /* page mapping flags */
    1.10  #define PG_PRESENT			(1 << 0)
    1.11  #define PG_WRITABLE			(1 << 1)
    1.12 @@ -52,10 +54,14 @@
    1.13  };
    1.14  
    1.15  int pgalloc(int num, int area);
    1.16 +int pgalloc_vrange(int start, int num);
    1.17  void pgfree(int start, int num);
    1.18  
    1.19 -uint32_t clone_vmem(void);
    1.20 +uint32_t clone_vm(void);
    1.21  
    1.22  void dbg_print_vm(int area);
    1.23  
    1.24 +/* defined in vm-asm.S */
    1.25 +void set_pgdir_addr(uint32_t addr);
    1.26 +
    1.27  #endif	/* VM_H_ */