Page fault

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

A page fault is an event which occurs during managed computation when a requested region of memory, known as a page, is not available. Traditionally, the computation is paused while the requested page is made available, or halted if the page cannot be made available. Page faults are usually raised by hardware memory management units (MMUs) in response to attempts to deference pointers.

trapcc

The x86 MMU can be programmed as a wikipedia:weird machine via an encoding of subleq onto a predefined memory layout along with custom fault handlers. When the MMU faults, it immediately experiences a wikipedia:double fault and alters memory while recovering; repeated page faults cause computation without executing non-fault-handler code.

Related links