Ticket #1925: 1925-early-allocation-debug-output.diff
File 1925-early-allocation-debug-output.diff, 1.3 KB (added by , 15 years ago) |
---|
-
src/system/kernel/arch/x86/arch_vm_translation_map.cpp
33 33 #include "X86VMTranslationMap.h" 34 34 35 35 36 //#define TRACE_VM_TMAP36 #define TRACE_VM_TMAP 37 37 #ifdef TRACE_VM_TMAP 38 38 # define TRACE(x...) dprintf(x) 39 39 #else -
src/system/kernel/vm/vm.cpp
3284 3284 vm_allocate_early(kernel_args* args, size_t virtualSize, size_t physicalSize, 3285 3285 uint32 attributes, bool blockAlign) 3286 3286 { 3287 dprintf("vm_allocate_early(virtualSize: %#lx, physicalSize: %#lx, attributes: %#lx)\n", virtualSize, physicalSize, attributes); 3287 3288 if (physicalSize > virtualSize) 3288 3289 physicalSize = virtualSize; 3289 3290 3290 3291 // find the vaddr to allocate at 3291 3292 addr_t virtualBase = allocate_early_virtual(args, virtualSize, blockAlign); 3292 3293 //dprintf("vm_allocate_early: vaddr 0x%lx\n", virtualAddress); 3294 dprintf(" allocated virtual range at: %#lx\n", virtualBase); 3293 3295 3294 3296 // map the pages 3295 3297 for (uint32 i = 0; i < PAGE_ALIGN(physicalSize) / B_PAGE_SIZE; i++) {