Grzegorz Bernacki 4c8add8a96 Fix L2 PTE access permissions management.
Keep following access permissions:

APX     AP     Kernel     User
 1      01       R         N
 1      10       R         R
 0      01      R/W        N
 0      11      R/W       R/W

Avoid using reserved in ARMv6 APX|AP settings:
- In case of unprivileged (user) access without permission to write,
  the access permission bits were being set to reserved for ARMv6
  (but valid for ARMv7) value of APX|AP = 111.

Fix-up faulting userland accesses properly:
- Wrong condition statement in pmap_fault_fixup() caused that
  any genuine, unprivileged access was being fixed-up instead of
  just skip doing anything and return. Staring from now we ensure
  proper reaction for illicit user accesses.

L2_S_PROT_R and L2_S_PROT_U names might be misleading as they do not
reflect real permission levels. It will be clarified in following
patches (switch to AP[2:1] permissions model).

Obtained from: Semihalf
2013-05-06 15:30:34 +00:00
..
2012-08-15 03:03:03 +00:00
2012-06-14 14:38:55 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2012-08-15 03:03:03 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2012-08-15 03:03:03 +00:00
2012-08-15 03:03:03 +00:00
2013-04-08 19:19:10 +00:00
2013-01-17 09:52:35 +00:00
2012-06-13 05:02:51 +00:00
2012-08-15 03:03:03 +00:00
2012-06-13 05:02:51 +00:00
2013-03-11 10:56:46 +00:00
2012-08-15 03:03:03 +00:00
2012-06-13 05:02:51 +00:00
2012-12-19 00:24:31 +00:00