VirtualBox

Changeset 83074 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Feb 14, 2020 12:35:34 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/r0drv-darwin: Some debug code. bugref:9466

Location:
trunk/src/VBox/Runtime/r0drv/darwin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/initterm-r0drv-darwin.cpp

    r82968 r83074  
    4848/** Pointer to the cpu_interrupt function, if found. */
    4949PFNR0DARWINCPUINTERRUPT     g_pfnR0DarwinCpuInterrupt = NULL;
     50#ifdef DEBUG
     51/** Pointer to the vm_fault_external function - used once for debugging @bugref{9466}. */
     52PFNR0DARWINVMFAULTEXTERNAL  g_pfnR0DarwinVmFaultExternal = NULL;
     53#endif
    5054
    5155
     
    7781            RTR0DbgKrnlInfoQuerySymbol(hKrnlInfo, NULL, "cpu_interrupt", (void **)&g_pfnR0DarwinCpuInterrupt);
    7882            printf("cpu_interrupt=%p\n", g_pfnR0DarwinCpuInterrupt);
     83#ifdef DEBUG
     84            RTR0DbgKrnlInfoQuerySymbol(hKrnlInfo, NULL, "vm_fault_external", (void **)&g_pfnR0DarwinVmFaultExternal);
     85            printf("vm_fault_external=%p\n", g_pfnR0DarwinVmFaultExternal);
     86#endif
    7987            RTR0DbgKrnlInfoRelease(hKrnlInfo);
    8088        }
  • trunk/src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h

    r82968 r83074  
    206206extern PFNR0DARWINASTPENDING       g_pfnR0DarwinAstPending;
    207207extern PFNR0DARWINCPUINTERRUPT     g_pfnR0DarwinCpuInterrupt;
     208#ifdef DEBUG /* Used once for debugging memory issues (see #9466). */
     209typedef kern_return_t (*PFNR0DARWINVMFAULTEXTERNAL)(vm_map_t, vm_map_offset_t, vm_prot_t, boolean_t, int, pmap_t, vm_map_offset_t);
     210extern PFNR0DARWINVMFAULTEXTERNAL  g_pfnR0DarwinVmFaultExternal;
     211#endif
    208212
    209213/* threadpreempt-r0drv-darwin.cpp */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette