Lines Matching defs:page

68 	struct vm_page *page;
125 // in page size units
227 vm_page_debug_access_start(vm_page* page)
230 thread_id previousThread = atomic_test_and_set(&page->accessing_thread,
233 panic("Invalid concurrent access to page 0x%" B_PRIXPHYSADDR " (start), currently "
234 "accessed by: %" B_PRId32 "@! page -m %p; sc %" B_PRId32 "; cache _cache",
235 page->physical_page_number * B_PAGE_SIZE, previousThread, page, previousThread);
241 vm_page_debug_access_end(vm_page* page)
244 thread_id previousThread = atomic_test_and_set(&page->accessing_thread, -1,
247 panic("Invalid concurrent access to page 0x%" B_PRIXPHYSADDR " (end) by "
248 "current thread, current accessor is: %" B_PRId32 "@! page -m %p; "
249 "sc %" B_PRId32 "; cache _cache", page->physical_page_number * B_PAGE_SIZE,
250 previousThread, page, previousThread);
256 vm_page_debug_access_check(vm_page* page)
258 thread_id thread = page->accessing_thread;
260 panic("Invalid concurrent access to page 0x%" B_PRIXPHYSADDR " (check), currently "
261 "accessed by: %" B_PRId32 "@! page -m %p; sc %" B_PRId32 "; cache _cache",
262 page->physical_page_number * B_PAGE_SIZE, thread, page, thread);
268 vm_page_debug_access_transfer(vm_page* page, thread_id expectedPreviousThread)
271 thread_id previousThread = atomic_test_and_set(&page->accessing_thread,
274 panic("Invalid access transfer for page %p, currently accessed by: "
275 "%" B_PRId32 ", expected: %" B_PRId32, page, previousThread,
280 # define DEBUG_PAGE_ACCESS_START(page) vm_page_debug_access_start(page)
281 # define DEBUG_PAGE_ACCESS_END(page) vm_page_debug_access_end(page)
282 # define DEBUG_PAGE_ACCESS_CHECK(page) vm_page_debug_access_check(page)
283 # define DEBUG_PAGE_ACCESS_TRANSFER(page, thread) \
284 vm_page_debug_access_transfer(page, thread)
286 # define DEBUG_PAGE_ACCESS_START(page) do {} while (false)
287 # define DEBUG_PAGE_ACCESS_END(page) do {} while (false)
288 # define DEBUG_PAGE_ACCESS_CHECK(page) do {} while (false)
289 # define DEBUG_PAGE_ACCESS_TRANSFER(page, thread) do {} while (false)