Revert "make munmap free physical pages, and one correction for aligned mmap in syscall.c (extend_process_region is called with memory-region start-address which is aligned (map_end_aligned), instead of tail-address of current-region (region->map_end)) for aligned mmap (in syscall.c)"
This reverts commit e7317cca98.
This commit is contained in:
parent
3d71edd55c
commit
a1490da112
@@ -2,7 +2,6 @@
|
||||
#define __HEADER_PAGE_H
|
||||
|
||||
void *allocate_pages(int npages, enum aal_mc_ap_flag flag);
|
||||
void free_pages_pa(unsigned long pa, int npages);
|
||||
void free_pages(void *va, int npages);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -92,8 +92,8 @@ int add_process_memory_range(struct process *process,
|
||||
int add_process_large_range(struct process *process,
|
||||
unsigned long start, unsigned long end,
|
||||
unsigned long flag, unsigned long *phys);
|
||||
int remove_process_region(struct process *proc, unsigned long va_start, unsigned long va_end, unsigned long pa);
|
||||
|
||||
int remove_process_region(struct process *proc,
|
||||
unsigned long start, unsigned long end);
|
||||
struct program_load_desc;
|
||||
void init_process_stack(struct process *process, struct program_load_desc *pn,
|
||||
int argc, char **argv,
|
||||
|
||||
Reference in New Issue
Block a user