VirtualBox

Changeset 1190 in vbox for trunk/include/iprt/asmdefs.mac


Ignore:
Timestamp:
Mar 4, 2007 8:42:13 PM (18 years ago)
Author:
vboxsync
Message:

Ported IPRT to ring-0 OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asmdefs.mac

    r74 r1190  
    115115
    116116;;
    117 ; Ends a C callabke procedure.
     117; Ends a C callable procedure.
    118118%macro ENDPROC 1
    119119GLOBALNAME %1_EndProc
     
    122122
    123123
     124;
     125; Do OMF segment definitions
     126;
     127%ifdef ASM_FORMAT_OMF
     128
     129 ; 16-bit segments first (OMF / OS/2 specific).
     130 %ifdef RT_INCL_16BIT_SEGMENTS
     131  segment DATA16 public CLASS=FAR_DATA align=16 use16
     132  segment DATA16_INIT public CLASS=FAR_DATA align=16 use16
     133  group DGROUP16 DATA16 DATA16_INIT
     134
     135  ;;
     136  ; Begins 16-bit data
     137   %macro BEGINDATA16 0
     138    segment DATA16
     139   %endmacro
     140
     141  ;;
     142  ; Begins 16-bit init data
     143   %macro BEGINDATA16INIT 0
     144    segment DATA16_INIT
     145   %endmacro
     146
     147  segment CODE16 public CLASS=FAR_CODE align=16 use16
     148  segment CODE16_INIT public CLASS=FAR_CODE align=16 use16
     149  group CGROUP16 CODE16 CODE16_INIT
     150
     151  ;;
     152  ; Begins 16-bit code
     153   %macro BEGINCODE16 0
     154    segment CODE16
     155   %endmacro
     156
     157  ;;
     158  ; Begins 16-bit init code
     159   %macro BEGINCODE16INIT 0
     160    segment CODE16_INIT
     161   %endmacro
     162
     163 %endif
     164
     165 ; 32-bit segments.
     166 segment TEXT32 public CLASS=CODE align=16 use32 flat
     167 segment DATA32 public CLASS=DATA align=16 use32 flat
     168 segment BSS32  public CLASS=BSS  align=16 use32 flat
     169
     170 ; Make the TEXT32 segment default.
     171 segment TEXT32
     172%endif
     173
     174
    124175;;
    125176; Begins code
    126177%ifdef ASM_FORMAT_OMF
    127178 %macro BEGINCODE 0
    128   %ifndef _DONE_BEGINCODE
    129    %define _DONE_BEGINCODE 1
    130    segment TEXT32 public CLASS=CODE align=16 use32 flat
    131   %else
    132    segment TEXT32
    133   %endif
     179  segment TEXT32
    134180 %endmacro
    135181%else
     
    144190%ifdef ASM_FORMAT_OMF
    145191 %macro BEGINDATA 0
    146   %ifndef _DONE_BEGINDATA
    147    %define _DONE_BEGINDATA 1
    148    segment DATA32 public CLASS=DATA align=16 use32 flat
    149   %else
    150    segment DATA32
    151   %endif
     192  segment DATA32
    152193 %endmacro
    153194%else
     
    161202%ifdef ASM_FORMAT_OMF
    162203 %macro BEGINBSS 0
    163   %ifndef _DONE_BEGINBSS
    164    %define _DONE_BEGINBSS
    165    segment BSS32 public CLASS=BSS align=16 use32 flat
    166   %else
    167    segment BSS32
    168   %endif
     204  segment BSS32
    169205 %endmacro
    170206%else
     
    407443
    408444;; @def RTHCPTR_RES
    409 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 
     445; The pesudo-instruction used to declare (=reserve space for) an uninitialized
    410446; host physical address variable
    411447%define RTHCPHYS_RES    resq
     
    426462
    427463;; @def RTGCPTR_RES
    428 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 
     464; The pesudo-instruction used to declare (=reserve space for) an uninitialized
    429465; guest physical address variable
    430466%define RTGCPHYS_RES    resd
     
    516552
    517553;; @def xAX
    518 ; RAX or EAX depending on context. 
     554; RAX or EAX depending on context.
    519555
    520556;; @def xBX
    521 ; RBX or EBX depending on context. 
     557; RBX or EBX depending on context.
    522558
    523559;; @def xCX
    524 ; RCX or ECX depending on context. 
     560; RCX or ECX depending on context.
    525561
    526562;; @def xDX
    527 ; RDX or EDX depending on context. 
     563; RDX or EDX depending on context.
    528564
    529565;; @def xDI
    530 ; RDI or EDI depending on context. 
     566; RDI or EDI depending on context.
    531567
    532568;; @def xSI
    533 ; RSI or ESI depending on context. 
     569; RSI or ESI depending on context.
    534570
    535571%ifdef __AMD64__
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