mirror of
https://github.com/drasko/codezero.git
synced 2026-02-27 09:13:13 +01:00
Added a few vm_object debug functions. Fixed few bugs.
Next issues: For every read fault, the fault must traverse the vma's object stack until the page is found. The problem was that we were only searching the first object, that object was a writable shadow, and the shadow didn't have the read-only page, and the 0 return value was interpreted with IS_ERR() and failed, so address 0 was mapped into the location, and QEMU blew off.
This commit is contained in:
@@ -196,6 +196,7 @@ struct vm_object *vm_object_alloc_init(void);
|
||||
struct vm_object *vm_object_create(void);
|
||||
struct vm_file *vm_file_create(void);
|
||||
int vm_object_delete(struct vm_object *vmo);
|
||||
void vm_object_print(struct vm_object *vmo);
|
||||
|
||||
/* Main page fault entry point */
|
||||
void page_fault_handler(l4id_t tid, fault_kdata_t *fkdata);
|
||||
|
||||
Reference in New Issue
Block a user