|
nckernel
0.1
|
PMA 에 접근하기 위해 임시로 VMA 영역에 매핑 한다. More...
Functions | |
| void * | onetime_map (void *pma) |
| PMA 를 VMA 로 매핑한다. More... | |
| void | onetime_map_init (void *vma_start, void *vma_end) |
| onetime map 초기화 More... | |
| void * | onetime_unmap (void *vma) |
| 임시로 사용되던 VMA 값을 다시 초기화 한다. More... | |
PMA 에 접근하기 위해 임시로 VMA 영역에 매핑 한다.
| void* onetime_map | ( | void * | pma) |
PMA 를 VMA 로 매핑한다.
| [in] | pma | 물리 메모리 |
Definition at line 91 of file onetime_map.c.
References info::bitmap, info::bitmap_sz, NULL, and s_info.
Referenced by fdc_read(), fdc_write(), and page_fault_handler().

| void onetime_map_init | ( | void * | vma_start, |
| void * | vma_end | ||
| ) |
onetime map 초기화
| [in] | vma_start | 사용할 가상 메모리 영역의 시작 주소 |
| [in] | vma_end | 사용할 가상 메모리 영역의 마지막 주소 |
Number of pages
Number of bytes, each bytes is able to represent 8 pages
Definition at line 208 of file onetime_map.c.
References _SC_PAGESIZE, thread::arch_data, info::bitmap, info::bitmap_sz, initm_alloc(), initm_find_pma(), initm_find_vma(), initm_vma(), malloc(), memset(), pgde::p, x86_arch_data::pma_pgd, pgde::pt_base, pthread_self(), thread::root, pgde::rw, s_info, sysconf(), TO_IDX, info::vma_end, and info::vma_start.

| void* onetime_unmap | ( | void * | vma) |
임시로 사용되던 VMA 값을 다시 초기화 한다.
| [in] | vma | 임시 할당 했던 VMA 주소 |
Definition at line 150 of file onetime_map.c.
References _SC_PAGESIZE, thread::arch_data, assert, info::bitmap, initm_find_vma(), NULL, pgte::p, pgte::page_base, x86_arch_data::pma_pgd, pthread_self(), thread::root, s_info, sysconf(), TO_IDX, info::vma_end, and info::vma_start.
Referenced by fdc_read(), fdc_write(), and page_fault_handler().


1.8.4