diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-03-31 17:07:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-03-31 17:07:04 +0000 |
commit | 981db6d4846ff52a5e76c18517d079599fe5da98 (patch) | |
tree | 26b3f6cef2e1742df89006a720bb7fd809cfd9f9 /sys/arch/amd64/include/cpu.h | |
parent | 56bcb6febaf316d511fca8e7aa9fd4504e4602f2 (diff) |
try to avoid pulling in pte.h and other more crazy things. Checked against
the things that libkvm needs.
Diffstat (limited to 'sys/arch/amd64/include/cpu.h')
-rw-r--r-- | sys/arch/amd64/include/cpu.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/amd64/include/cpu.h b/sys/arch/amd64/include/cpu.h index c9977c895bb..06a6ef1599c 100644 --- a/sys/arch/amd64/include/cpu.h +++ b/sys/arch/amd64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.79 2013/03/12 09:37:16 mpi Exp $ */ +/* $OpenBSD: cpu.h,v 1.80 2013/03/31 17:07:02 deraadt Exp $ */ /* $NetBSD: cpu.h,v 1.1 2003/04/26 18:39:39 fvdl Exp $ */ /*- @@ -41,16 +41,19 @@ /* * Definitions unique to x86-64 cpu support. */ +#ifdef _KERNEL #include <machine/frame.h> #include <machine/segments.h> -#include <machine/intrdefs.h> #include <machine/cacheinfo.h> +#include <machine/intrdefs.h> #ifdef MULTIPROCESSOR #include <machine/i82489reg.h> #include <machine/i82489var.h> #endif +#endif /* _KERNEL */ + #include <sys/device.h> #include <sys/lock.h> #include <sys/sched.h> @@ -211,10 +214,10 @@ extern struct cpu_info cpu_info_primary; #endif /* MULTIPROCESSOR */ -#endif /* _KERNEL */ - #include <machine/psl.h> +#endif /* _KERNEL */ + #ifdef MULTIPROCESSOR #include <sys/mplock.h> #endif |