Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/arch/i386/include/pte.h,v rcsdiff: /ftp/cvs/cvsroot/src/sys/arch/i386/include/pte.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.18 retrieving revision 1.18.2.3 diff -u -p -r1.18 -r1.18.2.3 --- src/sys/arch/i386/include/pte.h 2008/12/21 11:18:19 1.18 +++ src/sys/arch/i386/include/pte.h 2011/03/28 23:04:43 1.18.2.3 @@ -1,4 +1,4 @@ -/* $NetBSD: pte.h,v 1.18 2008/12/21 11:18:19 ad Exp $ */ +/* $NetBSD: pte.h,v 1.18.2.3 2011/03/28 23:04:43 jym Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -36,7 +36,6 @@ */ /* - * * Copyright (c) 1997 Charles D. Cranor and Washington University. * All rights reserved. * @@ -48,12 +47,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgment: - * This product includes software developed by Charles D. Cranor and - * Washington University. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -260,7 +253,12 @@ typedef uint32_t pt_entry_t; /* PTE */ #define PG_KR 0x00000000 /* kernel read-only */ #define PG_KW 0x00000002 /* kernel read-write */ + +#ifdef PAE +#define PG_NX 0x8000000000000000 /* No-execute */ +#else #define PG_NX 0 /* dummy */ +#endif /* * page protection exception bits