VirtualBox

Ignore:
Timestamp:
Nov 6, 2009 7:36:50 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54477
Message:

Solaris/r0drv: fix as_pagelock access error (host/guest common IPRT now).

Location:
trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/os/vbi.c

    r24386 r24425  
    667667
    668668int
    669 vbi_lock_va(void *addr, size_t len, void **handle)
     669vbi_lock_va(void *addr, size_t len, int access, void **handle)
    670670{
    671671        faultcode_t err;
     
    677677        if (!IS_KERNEL(addr)) {
    678678                err = as_fault(VBIPROC()->p_as->a_hat, VBIPROC()->p_as,
    679                     (caddr_t)addr, len, F_SOFTLOCK, S_WRITE);
     679                    (caddr_t)addr, len, F_SOFTLOCK, access);
    680680                if (err != 0) {
    681681                        VBI_VERBOSE("vbi_lock_va() failed to lock");
     
    688688/*ARGSUSED*/
    689689void
    690 vbi_unlock_va(void *addr, size_t len, void *handle)
     690vbi_unlock_va(void *addr, size_t len, int access, void *handle)
    691691{
    692692        if (!IS_KERNEL(addr))
    693693                as_fault(VBIPROC()->p_as->a_hat, VBIPROC()->p_as,
    694                     (caddr_t)addr, len, F_SOFTUNLOCK, S_WRITE);
     694                    (caddr_t)addr, len, F_SOFTUNLOCK, access);
    695695}
    696696
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/sys/vbi.h

    r21452 r24425  
    210210 * returns 0 for success, non-zero errno on failure
    211211 */
    212 extern int vbi_lock_va(void *addr, size_t len, void **handle);
    213 extern void vbi_unlock_va(void *addr, size_t len, void *handle);
     212extern int vbi_lock_va(void *addr, size_t len, int access, void **handle);
     213extern void vbi_unlock_va(void *addr, size_t len, int access, void *handle);
    214214
    215215/*
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