Commit 5923165a authored by Mao Minkai's avatar Mao Minkai Committed by guzitao
Browse files

sw64: fix mmap protection_map

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB73UR



--------------------------------

Set FOW bit for shared writable page so the software could set dirty-bit
in exception handling.

Signed-off-by: default avatarMao Minkai <maominkai@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 98b846b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ static inline void set_p4d(p4d_t *p4dp, p4d_t p4d)
#define _PAGE_CHG_MASK	(_PFN_MASK | __DIRTY_BITS | __ACCESS_BITS | _PAGE_SPECIAL | _PAGE_LEAF | _PAGE_CONT)

#define _PAGE_P(x)	_PAGE_NORMAL((x) | _PAGE_FOW)
#define _PAGE_S(x)	_PAGE_NORMAL(x)
#define _PAGE_S(x)	_PAGE_NORMAL((x) | _PAGE_FOW)

/*
 * pgprot_noncached() is only for infiniband pci support, and a real