diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2002-05-21 20:21:53 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2002-05-21 20:21:53 +0000 |
| commit | bb0d293f151da9494cfba1dda738cf4b3ca2627d (patch) | |
| tree | f0a028023cd692b0e46d479c253508cdb3866a7d /sys | |
| parent | 3abe4a80a5b1c8af62c41d12ed09d34bd7b4018b (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/amd64/include/cpufunc.h | 6 | ||||
| -rw-r--r-- | sys/i386/include/cpufunc.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h index a77fda1fb5a3..e0b7c996071d 100644 --- a/sys/amd64/include/cpufunc.h +++ b/sys/amd64/include/cpufunc.h @@ -560,6 +560,12 @@ load_dr7(u_int sel) __asm __volatile("movl %0,%%dr7" : : "r" (sel)); } +static __inline void +cpu_pause(void) +{ + __asm __volatile("pause"); +} + static __inline register_t intr_disable(void) { diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h index a77fda1fb5a3..e0b7c996071d 100644 --- a/sys/i386/include/cpufunc.h +++ b/sys/i386/include/cpufunc.h @@ -560,6 +560,12 @@ load_dr7(u_int sel) __asm __volatile("movl %0,%%dr7" : : "r" (sel)); } +static __inline void +cpu_pause(void) +{ + __asm __volatile("pause"); +} + static __inline register_t intr_disable(void) { |
