summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/cpufunc.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-03-05 15:22:05 +0000
committerbde <bde@FreeBSD.org>2004-03-05 15:22:05 +0000
commitba0e77c664c53c19ec920b9b2cfcf88fd64c6533 (patch)
treee28f72c7114e0628c4b677ae1a3b8a269a2b063e /sys/i386/include/cpufunc.h
parentfc5c35150592c4950358ccece88154a0a7388744 (diff)
downloadFreeBSD-src-ba0e77c664c53c19ec920b9b2cfcf88fd64c6533.zip
FreeBSD-src-ba0e77c664c53c19ec920b9b2cfcf88fd64c6533.tar.gz
Removed garbage:
- completely unused things - all of rev.1.102 (C++ support). <sys/cdefs.h> is included by the prerequisite <sys/types.h>. __BEGIN_DECLS/__END_DECLS has no effect (except possibly if undefined behaviour is invoked using a hack like defining away __inline) since this header doesn't really support any extern functions.
Diffstat (limited to 'sys/i386/include/cpufunc.h')
-rw-r--r--sys/i386/include/cpufunc.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h
index 3ceaeea..4e81f4a 100644
--- a/sys/i386/include/cpufunc.h
+++ b/sys/i386/include/cpufunc.h
@@ -42,13 +42,8 @@
#ifndef _MACHINE_CPUFUNC_H_
#define _MACHINE_CPUFUNC_H_
-#include <sys/cdefs.h>
-#include <machine/psl.h>
-
-struct thread;
struct region_descriptor;
-__BEGIN_DECLS
#define readb(va) (*(volatile u_int8_t *) (va))
#define readw(va) (*(volatile u_int16_t *) (va))
#define readl(va) (*(volatile u_int32_t *) (va))
@@ -469,21 +464,18 @@ load_gs(u_int sel)
__asm __volatile("movl %0,%%gs" : : "rm" (sel));
}
-/* void lidt(struct region_descriptor *addr); */
static __inline void
lidt(struct region_descriptor *addr)
{
__asm __volatile("lidt (%0)" : : "r" (addr));
}
-/* void lldt(u_short sel); */
static __inline void
lldt(u_short sel)
{
__asm __volatile("lldt %0" : : "r" (sel));
}
-/* void ltr(u_short sel); */
static __inline void
ltr(u_short sel)
{
@@ -623,8 +615,6 @@ intr_restore(register_t eflags)
int breakpoint(void);
u_int bsfl(u_int mask);
u_int bsrl(u_int mask);
-void cpu_invlpg(u_int addr);
-void cpu_invlpg_range(u_int start, u_int end);
void disable_intr(void);
void do_cpuid(u_int ax, u_int *p);
void enable_intr(void);
@@ -636,7 +626,6 @@ void insl(u_int port, void *addr, size_t cnt);
void insw(u_int port, void *addr, size_t cnt);
void invd(void);
void invlpg(u_int addr);
-void invlpg_range(u_int start, u_int end);
void invltlb(void);
u_short inw(u_int port);
void load_cr0(u_int cr0);
@@ -644,7 +633,6 @@ void load_cr3(u_int cr3);
void load_cr4(u_int cr4);
void load_fs(u_int sel);
void load_gs(u_int sel);
-struct region_descriptor;
void lidt(struct region_descriptor *addr);
void lldt(u_short sel);
void ltr(u_short sel);
@@ -691,6 +679,4 @@ void intr_restore(register_t ef);
void reset_dbregs(void);
-__END_DECLS
-
#endif /* !_MACHINE_CPUFUNC_H_ */
OpenPOWER on IntegriCloud