EasyManua.ls Logo

COBHAM GRMON3 - Page 168

COBHAM GRMON3
239 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
GRMON3-UM
June 2019, Version 3.1.0
168 www.cobham.com/gaisler
68. mmu - syntax
NAME
mmu - Print or set the SRMMU registers
SYNOPSIS
mmu ?cpu#?
mmu subcommand ?args...? ?cpu#?
DESCRIPTION
mmu ?cpu#?
Print the SRMMU registers
mmu mctrl ?value? ?cpu#?
Set the MMU control register
mmu ctxptr ?value? ?cpu#?
Set the context pointer register
mmu ctx value? ?cpu#?
Set the context register
mmu va ctx? ?cpu#?
Translate a virtual address. The command will use the MMU from the current active CPU and the cpu#
can be used to select a different CPU.
mmu walk ctx? ?cpu#?
Translate a virtual address and print translation. The command will use the MMU from the current active
CPU and the cpu# can be used to select a different CPU.
mmu table ctx? ?cpu#?
Print table, optionally specify context. The command will use the MMU from the current active CPU and
the cpu# can be used to select a different CPU.
RETURN VALUE
The commands mmu returns a list of the MMU registers.
The commands mmu va and mmu walk returns the translated address.
The command mmu table returns a list of ranges, where each range has the following format: {vaddr_start
vaddr_end paddr_start paddr_end access pages
EXAMPLE
Print MMU registers
grmon3> mmu
mctrl: 00904001 ctx: 00000001 ctxptr: 00622000 fsr: 000002DC far: 9CFB9000
TCL returns:
9453569 1 401920 732 -1661235200
Print MMU table
grmon3> puts [mmu table]
MMU Table for CTX1 for CPU0
0x00000000-0x00000fff -> 0x00000000-0x00000fff crwxrwx [1 page]
0x00001000-0x0061ffff -> 0x00001000-0x0061ffff crwx--- [1567 pages]
0x00620000-0x00620fff -> 0x00620000-0x00620fff -r-xr-x [1 page]
0x00621000-0x00621fff -> 0x00621000-0x00621fff crwx--- [1 page]
...
TCL returns:
{0x00000000 0x00000fff 0x00000000 0x00000fff crwxrwx 1} {0x00001000
0x0061ffff 0x00001000 0x0061ffff crwx--- 1567} {0x00620000 0x00620fff

Table of Contents