summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/cpufunc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/include/cpufunc.h')
-rw-r--r--sys/amd64/include/cpufunc.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h
index 39868df..317af1b 100644
--- a/sys/amd64/include/cpufunc.h
+++ b/sys/amd64/include/cpufunc.h
@@ -305,16 +305,6 @@ inw(u_int port)
return (data);
}
-static __inline u_int
-loadandclear(volatile u_int *addr)
-{
- u_int result;
-
- __asm __volatile("xorl %0,%0; xchgl %1,%0"
- : "=&r" (result) : "m" (*addr));
- return (result);
-}
-
static __inline void
outbv(u_int port, u_char data)
{
@@ -525,7 +515,6 @@ void invd __P((void));
void invlpg __P((u_int addr));
void invltlb __P((void));
u_short inw __P((u_int port));
-u_int loadandclear __P((u_int *addr));
void outb __P((u_int port, u_char data));
void outl __P((u_int port, u_int data));
void outsb __P((u_int port, void *addr, size_t cnt));
OpenPOWER on IntegriCloud