nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
page_fault_handler.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int page_fault_handler (int sub_irq, void *info, void *data)
 

Function Documentation

int page_fault_handler ( int  sub_irq,
void *  info,
void *  data 
)
Note
page table 들은 커널 영역의 경우, 모든 프로세스가 공유하게 된다. 그러므로, 커널 영역의 특정 페이지 테이블이 가진 페이지 엔트리를 수정하면, 결국 모든 프로세스가 해당 영역을 공유하고 있으므로, 모두 같이 수정된다. 그러므로, page 의 경우, 굳이 커널 영역/사용자 영역을 나누어 관리하지 않는다.

Definition at line 289 of file page_fault_handler.c.

References _SC_PAGESIZE, thread::arch_data, assert, dbg_printf(), pt_regs::ecode, pt_regs::eip, thread::esp, onetime_map(), onetime_unmap(), error_code::page_fault, panic(), x86_arch_data::pma_pgd, error_code::present, pthread_self(), sysconf(), TO_IDX, and error_code::write.

Referenced by arch_init().

Here is the call graph for this function:

Here is the caller graph for this function: