]> git.baikalelectronics.ru Git - kernel.git/commit
csky: fixup abiv2 mmap(... O_SYNC) failed.
authorGuo Ren <ren_guo@c-sky.com>
Sun, 30 Dec 2018 13:47:28 +0000 (21:47 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 31 Dec 2018 02:56:45 +0000 (10:56 +0800)
commit6c6a52a21ee08475f4cda83e42254c7b2a6c4434
treed4c06e8cb2eabaf8141eeb8fb1130d5651edd5bf
parent1d06c342f387d395ddcfb8588178a63043b5504f
csky: fixup abiv2 mmap(... O_SYNC) failed.

Glibc function mmap(... O_SYNC) will make page to _PAGE_UNCACHE +
_PAGE_SO and strong-order page couldn't support unalignment access.
So remove _PAGE_SO from _PAGE_UNCACHE, also sync abiv1 with the macro
of _PAGE_SO.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Reported-by: Liu Renwei <Renwei.Liu@verisilicon.com>
Tested-by: Yuan Qiyun <qiyun_yuan@c-sky.com>
arch/csky/abiv1/inc/abi/pgtable-bits.h
arch/csky/abiv2/inc/abi/pgtable-bits.h
arch/csky/mm/ioremap.c