diff options
author | 2016-12-06 16:27:33 +0000 | |
---|---|---|
committer | 2016-12-06 16:27:33 +0000 | |
commit | 39a349a3381014c65ffb3c6db1fa6379ba23a834 (patch) | |
tree | d1f627a3caf7c03e664ffa320bb2feaee929ba30 | |
parent | Don't forget to return an error (diff) | |
download | wireguard-openbsd-39a349a3381014c65ffb3c6db1fa6379ba23a834.tar.xz wireguard-openbsd-39a349a3381014c65ffb3c6db1fa6379ba23a834.zip |
Get PTE shift using PTE_LOG.
-rw-r--r-- | sys/arch/mips64/include/pmap.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/mips64/include/pmap.h b/sys/arch/mips64/include/pmap.h index 54de9dfd8c3..f1d6852fd75 100644 --- a/sys/arch/mips64/include/pmap.h +++ b/sys/arch/mips64/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.44 2016/05/11 15:50:29 visa Exp $ */ +/* $OpenBSD: pmap.h,v 1.45 2016/12/06 16:27:33 visa Exp $ */ /* * Copyright (c) 1987 Carnegie-Mellon University @@ -84,11 +84,7 @@ * Segment sizes */ -#ifdef MIPS_PTE64 -#define SEGSHIFT (PAGE_SHIFT + PMAP_L2SHIFT - 3) -#else -#define SEGSHIFT (PAGE_SHIFT + PMAP_L2SHIFT - 2) -#endif +#define SEGSHIFT (PAGE_SHIFT + PMAP_L2SHIFT - PTE_LOG) #define NBSEG (1UL << SEGSHIFT) #define SEGOFSET (NBSEG - 1) |