VirtualBox

Changeset 50425 in vbox


Ignore:
Timestamp:
Feb 12, 2014 12:52:17 PM (11 years ago)
Author:
vboxsync
Message:

ASMGetSegAttr returns UINT32_MAX on failure, not ~0U.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm-amd64-x86.h

    r50424 r50425  
    410410 * Get the access rights for the segment selector.
    411411 *
    412  * @returns The access rights on success or ~0U on failure.
     412 * @returns The access rights on success or UINT32_MAX on failure.
    413413 * @param   uSel        The selector value.
    414414 *
    415  * @remarks Using ~0U for failure is chosen because valid access rights always
    416  *          have bits 0:7 as 0 (on both Intel & AMD).
     415 * @remarks Using UINT32_MAX for failure is chosen because valid access rights
     416 *          always have bits 0:7 as 0 (on both Intel & AMD).
    417417 */
    418418#if RT_INLINE_ASM_EXTERNAL
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