mpu: actually enable the mpu (for real this time)

Change the SRD (subregion disable) bits to 0x00 to enable all subregions
Dump registers on MemoryManagemntFault and reboot
Add mpuShow function to dump mpu setup
Add __MPU_PRESENT #define to stm32 cmsis.h
Fix tid printing (all rtc registers only accept word read/writes)

MPU settings:
MPU: 1 HFNMIENA: 1 PRIVDEFENA: 1
0: E 00000000-ffffffff S: --- U: --- TEX: 0     00
1: E 08000000-0807ffff S: R-X U: R-X TEX: 0  C  00
2: E 20000000-2001ffff S: RW- U: RW- TEX: 0 SC  00
3: E 40000000-4003ffff S: RW- U: --- TEX: 0 S B 00
4: E e0000000-e00fffff S: RW- U: --- TEX: 0 S B 00

Bug: 37756881
Test: read from 0x00000004 and confirm system reboots
Change-Id: I8398ecd838dfeba40f5a12cb332eca0612cbc720
Signed-off-by: Ben Fennema <fennema@google.com>
5 files changed
tree: 09794c4089605a94d366e8cd6a934e43749e56b5
  1. contexthubhal/
  2. firmware/
  3. inc/
  4. lib/
  5. sensorhal/
  6. util/
  7. .gitignore