mirror of
https://github.com/drasko/codezero.git
synced 2026-04-29 07:01:31 +02:00
Forks and COW situations show that we need vm objects rather than vm_files.
This is the first commit towards implementing vm object based paging with right COW methods.
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
#ifndef __MM0_PROC__
|
||||
#define __MM0_PROC__
|
||||
|
||||
#include <vm_area.h>
|
||||
|
||||
struct proc_files {
|
||||
struct vm_file *stackfile; /* ZI, private, devzero, then autogenerated */
|
||||
struct vm_file *envfile; /* NON-ZI, private, autogenerated, then autogenerated */
|
||||
struct vm_file *datafile; /* NON-ZI, private, real file, then autogenerated */
|
||||
struct vm_file *bssfile; /* ZI private, devzero, then autogenerated */
|
||||
struct vm_object *stack_file; /* ZI, RO: devzero, RW: private */
|
||||
struct vm_object *env_file; /* NON-ZI, RO: private, RW: private */
|
||||
struct vm_object *data_file; /* NON-ZI, RO: shared, RW: private */
|
||||
struct vm_object *bss_file; /* ZI, RO: devzero, RW: private */
|
||||
};
|
||||
|
||||
int task_prepare_procfiles(struct tcb *t);
|
||||
int task_setup_vm_objects(struct tcb *t);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user