commit | 1f3f440b220688bcca39c4ae949853d603256406 | [log] [tgz] |
---|---|---|
author | Maureen Helm <maureen.helm@nxp.com> | Thu Jun 08 22:58:17 2017 -0500 |
committer | Kumar Gala <kumar.gala@gmail.com> | Mon Jun 12 11:40:12 2017 -0500 |
tree | b3f199ce99ccff39174ba363ad5d9c245f46270a | |
parent | bacbea6e21275bf564b503b86a455dd8ef26c99d [diff] |
arm: nxp: mpu: Fix off-by-1 error in region index calculation Both the ARM and NXP MPU drivers incorrectly calculated the region index by assuming the region type (e.g., THREAD_STACK_GUARD_REGION) was zero-indexed, when in reality it is one-indexed. This had the effect of wasting one region. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>