diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-06-13 13:56:06 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-13 13:56:06 +0000 |
| commit | 3c7553cc207add802b513acdf38de65ebfe6e74a (patch) | |
| tree | dfac6183fcb8a9992d37084f00162e97cd217d11 /sys | |
| parent | da77297b1ea064fc731bf04f743017acfafeb2d0 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/i386/include/pmap.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h index 519ff6c26b55..fed8e5ad0792 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) |
