| 268 | } |
| 269 | |
| 270 | U32 KMemory::unmap(U32 address, U32 len) { |
| 271 | U32 pageStart = address >> K_PAGE_SHIFT; |
| 272 | U32 pageCount = (len + K_PAGE_SIZE - 1) >> K_PAGE_SHIFT; |
| 273 | |
| 274 | this->data->setPagesInvalid(pageStart, pageCount); |
| 275 | return 0; |
| 276 | } |
| 277 | |
| 278 | U32 KMemory::mapPages(KThread* thread, U32 startPage, const std::vector<RamPage>& pages, U32 permissions) { |
| 279 | BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(mutex); |
no test coverage detected