summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include/pmap.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-03-31 17:07:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-03-31 17:07:04 +0000
commit981db6d4846ff52a5e76c18517d079599fe5da98 (patch)
tree26b3f6cef2e1742df89006a720bb7fd809cfd9f9 /sys/arch/amd64/include/pmap.h
parent56bcb6febaf316d511fca8e7aa9fd4504e4602f2 (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/pmap.h')
-rw-r--r--sys/arch/amd64/include/pmap.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/pmap.h b/sys/arch/amd64/include/pmap.h
index a3f257fb20a..1493759dc07 100644
--- a/sys/arch/amd64/include/pmap.h
+++ b/sys/arch/amd64/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.40 2013/03/21 15:50:28 deraadt Exp $ */
+/* $OpenBSD: pmap.h,v 1.41 2013/03/31 17:07:02 deraadt Exp $ */
/* $NetBSD: pmap.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */
/*
@@ -76,10 +76,12 @@
#define _MACHINE_PMAP_H_
#ifndef _LOCORE
+#ifdef _KERNEL
#include <machine/cpufunc.h>
-#include <machine/pte.h>
#include <machine/segments.h>
+#endif /* _KERNEL */
#include <uvm/uvm_object.h>
+#include <machine/pte.h>
#endif
/*