VirtualBox

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


Ignore:
Timestamp:
Mar 30, 2009 12:26:37 PM (16 years ago)
Author:
vboxsync
Message:

logbackdoor.cpp: Use ASMOutStrU8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/VBox/logbackdoor.cpp

    r10479 r18536  
    8787RTDECL(void) RTLogWriteUser(const char *pch, size_t cb)
    8888{
    89     const uint8_t *pu8;
    90     for (pu8 = (const uint8_t *)pch; cb-- > 0; pu8++)
     89    const uint8_t *pau8 = (const uint8_t *)pch;
     90    if (cb > 1)
     91        ASMOutStrU8(RTLOG_DEBUG_PORT, pau8, cb);
     92    else if (cb)
    9193        ASMOutU8(RTLOG_DEBUG_PORT, *pu8);
    92     /** @todo a rep outs could be more efficient, I don't know...
    93      * @code
    94      * __asm {
    95      *      mov     ecx, [cb]
    96      *      mov     esi, [pch]
    97      *      mov     dx, RTLOG_DEFAULT_PORT
    98      *      rep outsb
    99      * }
    100      * @endcode
    101      */
    10294}
    10395
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