Changeset 24425 in vbox for trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc
- Timestamp:
- Nov 6, 2009 7:36:50 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 54477
- 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 667 667 668 668 int 669 vbi_lock_va(void *addr, size_t len, void **handle)669 vbi_lock_va(void *addr, size_t len, int access, void **handle) 670 670 { 671 671 faultcode_t err; … … 677 677 if (!IS_KERNEL(addr)) { 678 678 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); 680 680 if (err != 0) { 681 681 VBI_VERBOSE("vbi_lock_va() failed to lock"); … … 688 688 /*ARGSUSED*/ 689 689 void 690 vbi_unlock_va(void *addr, size_t len, void *handle)690 vbi_unlock_va(void *addr, size_t len, int access, void *handle) 691 691 { 692 692 if (!IS_KERNEL(addr)) 693 693 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); 695 695 } 696 696 -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/sys/vbi.h
r21452 r24425 210 210 * returns 0 for success, non-zero errno on failure 211 211 */ 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);212 extern int vbi_lock_va(void *addr, size_t len, int access, void **handle); 213 extern void vbi_unlock_va(void *addr, size_t len, int access, void *handle); 214 214 215 215 /*
Note:
See TracChangeset
for help on using the changeset viewer.