VirtualBox

Changeset 97575 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Nov 16, 2022 10:41:57 PM (2 years ago)
Author:
vboxsync
Message:

ValKit/bs3kit.mac: Changed the parameter of BS3_BEGIN_TEXT16 to be the bitcount of the target mode, defaulting to 16-bit. This simplifies putting non-16-bit code in BS3TEXT16. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.mac

    r96407 r97575  
    338338
    339339
    340 %macro BS3_BEGIN_TEXT16 0-1 2
     340;;
     341; Changes to the BS3TEXT16 segment, defining it if necessary.
     342; @param %1  The bitcount to invoke BS3_SET_BITS with, default is 16.
     343%macro BS3_BEGIN_TEXT16 0-1 16
    341344 %ifndef  BS3_BEGIN_TEXT16_NOT_FIRST
    342345  %define BS3_BEGIN_TEXT16_NOT_FIRST
    343         section BS3TEXT16 align=%1 CLASS=BS3CLASS16CODE PUBLIC USE16
     346        section BS3TEXT16 align=2 CLASS=BS3CLASS16CODE PUBLIC USE16
    344347  %ifndef BS3_BEGIN_TEXT16_WITHOUT_GROUP ; bs3-first-common.mac trick.
    345348   %ifndef BS3_BEGIN_TEXT16_NEARSTUBS_NOT_FIRST
     
    359362 %undef   BS3_CUR_SEG_BEGIN_MACRO
    360363 %xdefine BS3_CUR_SEG_BEGIN_MACRO   BS3_BEGIN_TEXT16
    361         BS3_SET_BITS 16
     364        BS3_SET_BITS %1
    362365%endmacro
    363366
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