Replaces page fault triggers with assembly

This commit is contained in:
RipleyTom 2024-01-16 04:35:28 +01:00 committed by Elad.Ash
parent fa7ef870dd
commit 7d55a85fa6
3 changed files with 13 additions and 3 deletions

View file

@ -237,7 +237,7 @@ namespace vm
// Try triggering a page fault (write)
// TODO: Read memory if needed
vm::_ref<atomic_t<u8>>(test / 4096 == begin / 4096 ? begin : test) += 0;
utils::trigger_write_page_fault(vm::base(test / 4096 == begin / 4096 ? begin : test));
continue;
}
}