forked from 0ad/0ad
janwas
623e649acb
all cpu-related stuff is now defined in cpu.h (with cpu_ prefix and fully encapsulated). fix quite brittle core/HT unit/package detection. implement mkdir on VC8, where it is deprecated add strdup on MacOSX move ia32 code into separate subdir. functions implemented in asm are called ia32_asm_*. add some unix versions of sysdep functions (cannot test them) timer: fix for amd64 linux This was SVN commit r4995.
18 lines
514 B
PHP
18 lines
514 B
PHP
|
|
; set section attributes
|
|
section .data data align=32 use32
|
|
section .bss bss align=16 use32
|
|
section .text code align=64 use32
|
|
; activate .text (needs to be separate because __SECT__ will otherwise
|
|
; complain that the above definition is redeclaring attributes)
|
|
section .text
|
|
|
|
; Usage:
|
|
; use sym(ia32_cap) instead of _ia32_cap - on relevant platforms, sym() will add
|
|
; the underlines automagically, on others it won't
|
|
%ifdef DONT_USE_UNDERLINE
|
|
%define sym(a) a
|
|
%else
|
|
%define sym(a) _ %+ a
|
|
%endif
|