Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/include Pull i386 pte.h on amd64 for 32bit co...



details:   https://anonhg.NetBSD.org/src/rev/de81e6f8bf0e
branches:  trunk
changeset: 756572:de81e6f8bf0e
user:      njoly <njoly%NetBSD.org@localhost>
date:      Sat Jul 24 17:43:47 2010 +0000

description:
Pull i386 pte.h on amd64 for 32bit compat.

diffstat:

 sys/arch/amd64/include/pte.h |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r af8e6edc541f -r de81e6f8bf0e sys/arch/amd64/include/pte.h
--- a/sys/arch/amd64/include/pte.h      Sat Jul 24 15:33:12 2010 +0000
+++ b/sys/arch/amd64/include/pte.h      Sat Jul 24 17:43:47 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pte.h,v 1.7 2010/07/06 20:50:34 cegger Exp $   */
+/*     $NetBSD: pte.h,v 1.8 2010/07/24 17:43:47 njoly Exp $    */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -38,6 +38,8 @@
 #ifndef _AMD64_PTE_H_
 #define _AMD64_PTE_H_
 
+#ifdef __x86_64__
+
 /*
  * amd64 MMU hardware structure:
  *
@@ -132,4 +134,10 @@
 
 #include <x86/pte.h>
 
+#else   /*      !__x86_64__      */
+
+#include <i386/pte.h>
+
+#endif  /*      !__x86_64__      */
+
 #endif /* _AMD64_PTE_H_ */



Home | Main Index | Thread Index | Old Index