Ticket #1925: 1925-early-allocation-debug-output.diff

File 1925-early-allocation-debug-output.diff, 1.3 KB (added by bonefish, 10 years ago)

patch: additional debug output in vm_allocate_early and arch_vm_translation_map.cpp

  • src/system/kernel/arch/x86/arch_vm_translation_map.cpp

     
    3333#include "X86VMTranslationMap.h"
    3434
    3535
    36 //#define TRACE_VM_TMAP
     36#define TRACE_VM_TMAP
    3737#ifdef TRACE_VM_TMAP
    3838#   define TRACE(x...) dprintf(x)
    3939#else
  • src/system/kernel/vm/vm.cpp

     
    32843284vm_allocate_early(kernel_args* args, size_t virtualSize, size_t physicalSize,
    32853285    uint32 attributes, bool blockAlign)
    32863286{
     3287dprintf("vm_allocate_early(virtualSize: %#lx, physicalSize: %#lx, attributes: %#lx)\n", virtualSize, physicalSize, attributes);
    32873288    if (physicalSize > virtualSize)
    32883289        physicalSize = virtualSize;
    32893290
    32903291    // find the vaddr to allocate at
    32913292    addr_t virtualBase = allocate_early_virtual(args, virtualSize, blockAlign);
    32923293    //dprintf("vm_allocate_early: vaddr 0x%lx\n", virtualAddress);
     3294dprintf("  allocated virtual range at: %#lx\n", virtualBase);
    32933295
    32943296    // map the pages
    32953297    for (uint32 i = 0; i < PAGE_ALIGN(physicalSize) / B_PAGE_SIZE; i++) {