add nocache for mmap. usage: void *va = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS | 0x40, -1, 0);

This commit is contained in:
simin
2012-11-11 22:31:32 +09:00
committed by Masamichi Takagi m-takagi@ab.jp.nec.com
parent 06003ec2e2
commit 31098d3d75
3 changed files with 113 additions and 7 deletions

View File

@@ -103,6 +103,12 @@ unsigned long extend_process_region(struct process *proc,
unsigned long start, unsigned long end,
unsigned long address);
#ifdef USE_NOCACHE_MMAP
unsigned long extend_process_nocache_region(struct process *proc,
unsigned long start, unsigned long end,
unsigned long address);
#endif
void schedule(void);
void runq_add_proc(struct process *proc, int cpu_id);
void runq_del_proc(struct process *proc, int cpu_id);