mdbat subcommand

The mdbat subcommand is used to modify the dbat register. The processor data bat register is modified immediately. The word containing the valid bit is set last.

Format

mdbat [index]

Parameters

Item Description
index Specifies the dbat register to modify. Valid values are 0 through 3.

If no parameter is entered, you are prompted for the values for all dbat registers. If a parameter is specified for the mdbat subcommand, you are only prompted for the new values for the specified dbat register.

You can input both the upper and lower values for each dbat register or you can press Enter for these values. If the upper and lower values for the register are not entered, the user is prompted for the values for the individual fields of the dbat register. To stop entering values, you type a period (.) and press Enter at any prompt.

Other

No aliases.

Examples

The following is an example of how to use the mdbat subcommand on a PowerPC 604 RISC Microprocessor:

   KDB(0)> mdbat 2  //alter bat register 2
   BAT register, enter <RC> twice to select BAT field, enter <.> to quit
   DBAT2 upper 00000000 = 
   DBAT2 lower 00000000 = 
   BAT field, enter <RC> to select field, enter <.> to quit
   DBAT2.bepi: 00000000 = 00007FE0
   DBAT2.brpn: 00000000 = 00007FE0
   DBAT2.bl  : 00000000 = 0000001F
   DBAT2.vs  : 00000000 = 00000001
   DBAT2.vp  : 00000000 = <CR/LF>
   DBAT2.wimg: 00000000 = 00000003
   DBAT2.pp  : 00000000 = 00000002
   DBAT2 FFC0007E FFC0001A
    bepi 7FE0 brpn 7FE0 bl 001F vs 1 vp 0 wimg 3 pp 2
    eaddr = FFC00000, paddr = FFC00000 size = 4096 KBytes [Supervisor state]
   KDB(0)> mdbat 2  //clear bat register 2
   BAT register, enter <RC> twice to select BAT field, enter <.> to quit
   DBAT2 upper FFC0007E = 0
   DBAT2 lower FFC0001A = 0 
   DBAT2 00000000 00000000
    bepi 0000 brpn 0000 bl 0000 vs 0 vp 0 wimg 0 pp 0