diff options
author | marcel <marcel@FreeBSD.org> | 2003-07-26 07:23:25 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-07-26 07:23:25 +0000 |
commit | e33bcc1872887407faa57becf9cde30a67fe1596 (patch) | |
tree | 44dc72a1e7ca596be8f59cebe5acc822e402a8d4 /sys | |
parent | d7b9b072229d3fa7d46917b9a76d1e70a60362d1 (diff) | |
download | FreeBSD-src-e33bcc1872887407faa57becf9cde30a67fe1596.zip FreeBSD-src-e33bcc1872887407faa57becf9cde30a67fe1596.tar.gz |
Unbreak ia64 builds now -Werror is enabled again. Avoid obsolete
memory operand construct.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ia64/include/acpica_machdep.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/ia64/include/acpica_machdep.h b/sys/ia64/include/acpica_machdep.h index 51ceeeb..f459b6a 100644 --- a/sys/ia64/include/acpica_machdep.h +++ b/sys/ia64/include/acpica_machdep.h @@ -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 !*/ |