mm: hack: allow to change arm mem attributes through madvise()
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 4 Jun 2014 22:36:39 +0000 (01:36 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 11 Jul 2014 22:37:14 +0000 (01:37 +0300)
commit75038e001e5a6af8963915c2b80cb38ce3a7f4d6
treeaa46ac2b2303635d29735b3acc8633290f047bc8
parent6f4b131c8dee8f5bdfb4a254d4a610e6956f26bc
mm: hack: allow to change arm mem attributes through madvise()

Use advise of 0x2000 + <tex0_cb> (0-7) for madvise().
See L_PTE_MT_* in arch/arm/include/asm/pgtable-2level.h for tex0_cb
values to use, only 3 LSB bits are used by the hardware.
mm/madvise.c