VirtualBox

Ignore:
Timestamp:
Dec 16, 2019 5:48:40 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135475
Message:

SUPDrv,IPRT: Adding SUPR0HCPhysToVirt to linux & solaris; introducing IPRT_WITHOUT_EFLAGS_AC_PRESERVING and VBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV config macros for disabling EFLAGS.AC hacks (not active). bugref:9627

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c

    r76553 r82590  
    4646#include <sys/file.h>
    4747#include <sys/priv_names.h>
     48#include <vm/hat.h>
    4849#undef u /* /usr/include/sys/user.h:249:1 is where this is defined to (curproc->p_user). very cool. */
    4950
     
    6465
    6566#include "dtrace/SUPDrv.h"
     67
     68extern "C" caddr_t hat_kpm_pfn2va(pfn_t); /* Found in vm/hat.h on solaris 11.3, but not on older like 10u7. */
    6669
    6770
     
    12771280
    12781281
     1282SUPR0DECL(int) SUPR0HCPhysToVirt(RTHCPHYS HCPhys, void **ppv)
     1283{
     1284    AssertReturn(!(HCPhys & PAGE_OFFSET_MASK), VERR_INVALID_POINTER);
     1285    AssertReturn(HCPhys != NIL_RTHCPHYS, VERR_INVALID_POINTER);
     1286    HCPhys >>= PAGE_SHIFT;
     1287    AssertReturn(HCPhys <= physmax, VERR_INVALID_POINTER);
     1288    *ppv = hat_kpm_pfn2va(HCPhys);
     1289    return VINF_SUCCESS;
     1290}
     1291
     1292
    12791293RTDECL(int) SUPR0Printf(const char *pszFormat, ...)
    12801294{
Note: See TracChangeset for help on using the changeset viewer.

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