mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Unbreak ia64 builds now -Werror is enabled again. Avoid obsolete
memory operand construct.
This commit is contained in:
parent
c43cad1ac1
commit
dc539f3ee0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118046
@ -65,7 +65,7 @@
|
||||
|
||||
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) \
|
||||
do { \
|
||||
__asm__ volatile ("1: ld4 r29=%1\n" \
|
||||
__asm__ volatile ("1: ld4 r29=[%1]\n" \
|
||||
";;\n" \
|
||||
"mov ar.ccv=r29\n" \
|
||||
"mov r2=r29\n" \
|
||||
@ -77,7 +77,7 @@
|
||||
";;\n" \
|
||||
"add r29=r29,r30\n" \
|
||||
";;\n" \
|
||||
"cmpxchg4.acq r30=%1,r29,ar.ccv\n" \
|
||||
"cmpxchg4.acq r30=[%1],r29,ar.ccv\n" \
|
||||
";;\n" \
|
||||
"cmp.eq p6,p7=r2,r30\n" \
|
||||
"(p7) br.dpnt.few 1b\n" \
|
||||
@ -85,24 +85,24 @@
|
||||
";;\n" \
|
||||
"(p8) mov %0=-1\n" \
|
||||
"(p9) mov %0=r0\n" \
|
||||
:"=r"(Acq):"m"(GLptr):"r2","r29","r30","memory"); \
|
||||
:"=r"(Acq):"r"(GLptr):"r2","r29","r30","memory"); \
|
||||
} while (0)
|
||||
|
||||
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Acq) \
|
||||
do { \
|
||||
__asm__ volatile ("1: ld4 r29=%1\n" \
|
||||
__asm__ volatile ("1: ld4 r29=[%1]\n" \
|
||||
";;\n" \
|
||||
"mov ar.ccv=r29\n" \
|
||||
"mov r2=r29\n" \
|
||||
"and r29=-4,r29\n" \
|
||||
";;\n" \
|
||||
"cmpxchg4.acq r30=%1,r29,ar.ccv\n" \
|
||||
"cmpxchg4.acq r30=[%1],r29,ar.ccv\n" \
|
||||
";;\n" \
|
||||
"cmp.eq p6,p7=r2,r30\n" \
|
||||
"(p7) br.dpnt.few 1b\n" \
|
||||
"and %0=1,r2\n" \
|
||||
";;\n" \
|
||||
:"=r"(Acq):"m"(GLptr):"r2","r29","r30","memory"); \
|
||||
:"=r"(Acq):"r"(GLptr):"r2","r29","r30","memory"); \
|
||||
} while (0)
|
||||
/*! [End] no source code translation !*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user