• Kees Cook's avatar
    ARM: 8666/1: mm: dump: Add domain to output · dd59f974
    Kees Cook authored
    This adds the memory domain (on non-LPAE) to the PMD and PTE dumps. This
    isn't in the regular PMD bits because I couldn't find a clean way to
    fall back to retain some of the PMD bits when reporting PTE. So this is
    special-cased currently.
    
    New output example:
    
      ---[ Modules ]---
      0x7f000000-0x7f001000       4K KERNEL      ro x  SHD MEM/CACHED/WBWA
      0x7f001000-0x7f002000       4K KERNEL      ro NX SHD MEM/CACHED/WBWA
      0x7f002000-0x7f004000       8K KERNEL      RW NX SHD MEM/CACHED/WBWA
      ---[ Kernel Mapping ]---
      0x80000000-0x80100000       1M KERNEL      RW NX SHD
      0x80100000-0x80800000       7M KERNEL      ro x  SHD
      0x80800000-0x80b00000       3M KERNEL      ro NX SHD
      0x80b00000-0xa0000000     501M KERNEL      RW NX SHD
      ...
      ---[ Vectors ]---
      0xffff0000-0xffff1000       4K VECTORS USR ro x  SHD MEM/CACHED/WBWA
      0xffff1000-0xffff2000       4K VECTORS     ro x  SHD MEM/CACHED/WBWA
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>
    Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
    dd59f974
dump.c 8.59 KB