[PATCH] makedumpfile: s390x: Allow HW Change-bit override for page table entries

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

 



The HW Change-bit override (0x100) is used now for s390x. This patch allows
page table entries that have set this bit.

Signed-off-by: Michael Holzheu <holzheu at linux.vnet.ibm.com>
---
 arch/s390x.c   |    4 ++--
 makedumpfile.h |    1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

--- a/arch/s390x.c
+++ b/arch/s390x.c
@@ -195,10 +195,10 @@ static ulong _kl_pg_table_deref_s390x(un
 	readmem(VADDR, table + offset, &entry, sizeof(entry));
 	/*
 	 * Check if the page table entry could be read and doesn't have
-	 * any of the reserved bits set.
+	 * the reserved bit set.
 	 * Check if the page table entry has the invalid bit set.
 	 */
-	if (entry &  (_PAGE_CO | _PAGE_ZERO | _PAGE_INVALID)) {
+	if (entry &  (_PAGE_ZERO | _PAGE_INVALID)) {
 		ERRMSG("Invalid page table entry.\n");
 		return 0;
 	}
--- a/makedumpfile.h
+++ b/makedumpfile.h
@@ -575,7 +575,6 @@ do { \
 #define _SEGMENT_INDEX_SHIFT	20
 
 /* Hardware bits in the page table entry */
-#define _PAGE_CO		0x100	/* HW Change-bit override */
 #define _PAGE_ZERO		0x800	/* Bit pos 52 must conatin zero */
 #define _PAGE_INVALID		0x400	/* HW invalid bit */
 #define _PAGE_INDEX_SHIFT	12




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux