VirtualBox

Changeset 58679 in vbox


Ignore:
Timestamp:
Nov 12, 2015 8:19:17 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104105
Message:

bs3kit-docs.c: Documented return registers (64-bit returns in 16-bit mode was a bit of a surprise).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-docs.c

    r58648 r58679  
    9292 * protected mode to 32-bit long mode.
    9393 *
     94 * Return values are returned in the xAX register, but with the following
     95 * caveats for values larger than ARCH_BITS:
     96 *      - 16-bit code:
     97 *          - 32-bit values are returned in AX:DX, where AX holds bits 15:0 and
     98 *            DX bits 31:16.
     99 *          - 64-bit values are returned in DX:CX:BX:AX, where DX holds bits
     100 *            15:0, CX bits 31:16, BX bits 47:32, and AX bits 63:48.
     101 *      - 32-bit code:
     102 *          - 64-bit values are returned in EAX:EDX, where eax holds the least
     103 *            significant bits.
     104 *
    94105 * For an in depth coverage of x86 and AMD64 calling convensions, see
    95106 * http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/function-calling-conventions.html
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