From: guenther Date: Mon, 21 Apr 2014 11:58:48 +0000 (+0000) Subject: Fix off-by-one error in PG_LGFRAME mask X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=da7f9b3342a595e30a18db3c834007898eba904f;p=openbsd Fix off-by-one error in PG_LGFRAME mask ok mlarkin@ --- diff --git a/sys/arch/amd64/include/pte.h b/sys/arch/amd64/include/pte.h index e7bc3671c21..acdb7535c62 100644 --- a/sys/arch/amd64/include/pte.h +++ b/sys/arch/amd64/include/pte.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pte.h,v 1.9 2013/03/23 16:12:20 deraadt Exp $ */ +/* $OpenBSD: pte.h,v 1.10 2014/04/21 11:58:48 guenther Exp $ */ /* $NetBSD: pte.h,v 1.1 2003/04/26 18:39:47 fvdl Exp $ */ /* @@ -123,7 +123,7 @@ typedef u_int64_t pt_entry_t; /* PTE */ #define PG_NX 0x8000000000000000UL /* non-executable */ #define PG_FRAME 0x000ffffffffff000UL -#define PG_LGFRAME 0x000fffffffc00000UL /* large (2M) page frame mask */ +#define PG_LGFRAME 0x000fffffffe00000UL /* large (2M) page frame mask */ /* Cacheability bits when we are using PAT */ #define PG_WB (0) /* The default */