summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/i386/include/pmap.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h
index 519ff6c..fed8e5a 100644
--- a/sys/i386/include/pmap.h
+++ b/sys/i386/include/pmap.h
@@ -362,15 +362,8 @@ pte_load(pt_entry_t *ptep)
static __inline pt_entry_t
pte_load_store(pt_entry_t *ptep, pt_entry_t pte)
{
- pt_entry_t r;
-
- __asm __volatile(
- "xchgl %0,%1"
- : "=m" (*ptep),
- "=r" (r)
- : "1" (pte),
- "m" (*ptep));
- return (r);
+ __asm volatile("xchgl %0, %1" : "+m" (*ptep), "+r" (pte));
+ return (pte);
}
#define pte_load_clear(pte) atomic_readandclear_int(pte)
OpenPOWER on IntegriCloud