diff options
author | Kendall Bennett <[email protected]> | 1999-11-12 04:56:54 +0000 |
---|---|---|
committer | Kendall Bennett <[email protected]> | 1999-11-12 04:56:54 +0000 |
commit | e312cf26ea1ae0445926df20c43e80363d453cb5 (patch) | |
tree | 6e13b3e4f76081cc0edc61e5941b1b140c771e3a /src/mesa/x86/assyntax.h | |
parent | b95d252c347e14825cd61b28223040cfc5d0e7de (diff) |
. Updates to get X86, MXX and 3DNow assembler code working with Watcom
C++ and NASM. This includes lots of _ASMAPI macros to ensure that
assembler functions are prototyped as __cdecl, as Watcom C++ uses
register calling conventions by default.
. Misc fixes to files to remove warnings generated by Watcom C++.
Diffstat (limited to 'src/mesa/x86/assyntax.h')
-rw-r--r-- | src/mesa/x86/assyntax.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/x86/assyntax.h b/src/mesa/x86/assyntax.h index 1d476ce49b0..30105073b1d 100644 --- a/src/mesa/x86/assyntax.h +++ b/src/mesa/x86/assyntax.h @@ -876,9 +876,17 @@ #define D_BYTE db /* #define SPACE */ /* #define COMM */ +#if defined(__WATCOMC__) +SECTION _TEXT public align=16 class=CODE use32 flat +SECTION _DATA public align=16 class=DATA use32 flat +#define SEG_TEXT SECTION _TEXT +#define SEG_DATA SECTION _DATA +#define SEG_BSS SECTION .bss +#else #define SEG_DATA SECTION .data #define SEG_TEXT SECTION .text #define SEG_BSS SECTION .bss +#endif #define D_SPACE(n) db n REP 0 |