VirtualBox

Changeset 5690

Show
Ignore:
Timestamp:
11/11/07 18:38:03 (1 year ago)
Author:
vboxsync
Message:

BEGINCONST - defaults to text (BEGINCODE) on most platforms, be warned.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/asmdefs.mac

    r5605 r5690  
    138138  ;; 
    139139  ; Begins 16-bit data 
    140   %macro BEGINDATA16 0 
    141     segment DATA16 
    142   %endmacro 
     140  %macro BEGINDATA16 0 
     141   segment DATA16 
     142  %endmacro 
    143143 
    144144  ;; 
    145145  ; Begins 16-bit init data 
    146   %macro BEGINDATA16INIT 0 
    147     segment DATA16_INIT 
    148   %endmacro 
     146  %macro BEGINDATA16INIT 0 
     147   segment DATA16_INIT 
     148  %endmacro 
    149149 
    150150  segment CODE16 public CLASS=FAR_CODE align=16 use16 
     
    154154  ;; 
    155155  ; Begins 16-bit code 
    156   %macro BEGINCODE16 0 
    157     segment CODE16 
    158   %endmacro 
     156  %macro BEGINCODE16 0 
     157   segment CODE16 
     158  %endmacro 
    159159 
    160160  ;; 
    161161  ; Begins 16-bit init code 
    162   %macro BEGINCODE16INIT 0 
    163     segment CODE16_INIT 
    164   %endmacro 
     162  %macro BEGINCODE16INIT 0 
     163   segment CODE16_INIT 
     164  %endmacro 
    165165 
    166166 %endif 
     
    195195%endif 
    196196 
     197;; 
     198; Begins constant (read-only) data 
     199; 
     200; @remarks  This is mapped to the CODE section/segment when there isn't 
     201;           any dedicated const section/segment. (There is code that 
     202;           assumes this, so don't try change it.) 
     203%ifdef ASM_FORMAT_OMF 
     204 %macro BEGINCONST 0 
     205  segment TEXT32 
     206 %endmacro 
     207%else 
     208 %macro BEGINCONST 0 
     209  %ifdef ASM_FORMAT_MACHO ;; @todo check the other guys too. 
     210   [section .rodata] 
     211  %else 
     212   [section .text] 
     213  %endif 
     214 %endmacro 
     215%endif 
    197216 
    198217;; 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy