mirror of
https://github.com/acpica/acpica/
synced 2025-01-15 22:09:17 +03:00
New asm macros
date 2000.04.20.22.32.00; author rmoore1; state Exp;
This commit is contained in:
parent
e50ddeb361
commit
2213d99e72
@ -268,6 +268,16 @@ typedef char *va_list;
|
||||
#define halt() __asm {hlt}
|
||||
#define wbinvd() __asm {WBINVD}
|
||||
|
||||
#define ASM_mov(d,s) __asm {mov d, s}
|
||||
#define ASM_and(t,v) __asm {and t, v}
|
||||
#define ASM_bts(t,b) __asm {bts t, b}
|
||||
#define ASM_adc(t,v) __asm {adc t, v}
|
||||
#define ASM_cmp(v1,v2) __asm {cmp v1, v2}
|
||||
#define ASM_cmpxchg(v1,v2) __asm {lock cmpxchg dword ptr v1, v2}
|
||||
#define ASM_jnz(t) __asm {jnz short t}
|
||||
#define ASM_sbb(t,v) __asm {sbb t, v}
|
||||
|
||||
|
||||
#elif defined(__GNUC__)
|
||||
|
||||
#define causeinterrupt(level)
|
||||
@ -277,6 +287,16 @@ typedef char *va_list;
|
||||
#define halt() __asm ("hlt")
|
||||
#define wbinvd() __asm ("wbinvd")
|
||||
|
||||
#define ASM_mov(d,s) __asm {"mov d, s"}
|
||||
#define ASM_and(t,v) __asm {"and t, v"}
|
||||
#define ASM_bts(t,b) __asm {"bts t, b"}
|
||||
#define ASM_adc(t,v) __asm {"adc t, v"}
|
||||
#define ASM_cmp(v1,v2) __asm {"cmp v1, v2"}
|
||||
#define ASM_cmpxchg(v1,v2) __asm {"lock cmpxchg dword ptr v1, v2"}
|
||||
#define ASM_jnz(t) __asm {"jnz short t"}
|
||||
#define ASM_sbb(t,v) __asm {"sbb t, v"}
|
||||
|
||||
|
||||
#else
|
||||
|
||||
#define causeinterrupt(level)
|
||||
@ -285,6 +305,15 @@ typedef char *va_list;
|
||||
#define enable()
|
||||
#define halt()
|
||||
|
||||
#define ASM_mov(d,s)
|
||||
#define ASM_and(t,v)
|
||||
#define ASM_bts(t,b)
|
||||
#define ASM_adc(t,v)
|
||||
#define ASM_cmp(v1,v2)
|
||||
#define ASM_cmpxchg(v1,v2)
|
||||
#define ASM_jnz(t)
|
||||
#define ASM_sbb(t,v)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef ACPI_APPLICATION
|
||||
|
Loading…
Reference in New Issue
Block a user