VirtualBox

Changeset 10729 in vbox for trunk


Ignore:
Timestamp:
Jul 17, 2008 3:05:47 PM (16 years ago)
Author:
vboxsync
Message:

Drop the prc parameter. fixed the wrong cbParm/Data values in the fast path.

Location:
trunk/src/VBox/HostDrivers/Support/os2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/os2/SUPDrv-os2.cpp

    r10722 r10729  
    229229
    230230
    231 DECLASM(int) VBoxDrvIOCtlFast(uint16_t sfn, uint8_t iFunction, int32_t *prc)
     231DECLASM(int) VBoxDrvIOCtlFast(uint16_t sfn, uint8_t iFunction)
    232232{
    233233    /*
  • trunk/src/VBox/HostDrivers/Support/os2/SUPDrvA-os2.asm

    r10256 r10729  
    314314    ;
    315315    ; Fast IOCtl.
    316     ;   DECLASM(int) VBoxDrvIOCtlFast(uint16_t sfn, uint8_t iFunction, uint16_t *pcbParm)
     316    ;   DECLASM(int) VBoxDrvIOCtlFast(uint16_t sfn, uint8_t iFunction)
    317317    ;
    318318VBoxDrvEP_GenIOCtl_Fast:
    319     mov     ax, [es:bx + PKTIOCTL.pData + 2]        ; LDT selector to flat address.
    320     shr     ax, 3
    321     shl     eax, 16
    322     mov     ax, [es:bx + PKTIOCTL.pData]
    323     push    eax                                     ; 08h - pointer to the rc buffer.
    324 
    325319    ; function.
    326320    movzx   edx, byte [es:bx + PKTIOCTL.fun]
     
    367361
    368362    ; setup output stuff.
    369     mov     edx, esp
    370     mov     eax, [ss:edx + 0ch]                     ; output sizes.
     363    xor     eax, eax
    371364    mov     [es:bx + PKTIOCTL.cbParm], eax          ; update cbParm and cbData.
    372365    mov     word [es:bx + PKTHDR.status], 00100h    ; done, ok.
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