bdi
GDB
for GNU Debugger, BDI2000 (ARM)
User Manual
40
© Copyright 1997-2005 by ABATRON AG Switzerland
V 1.17
Example for a register definition (AT91M40400):
Entry in the configuration file:
[REGS]
DMM1
0x04700000
;Internal Memory Map Base Address
FILE
E:\bdi\reg40400.def
;The register definition file
The register definition file:
;name
type
addr
size
;-------------------------------------------
;
;
; External Bus Interface (EBI) Registers
;
csr0
MM
0xFFE0000032
csr1
MM
0xFFE0000432
csr2
MM
0xFFE0000832
csr3
MM
0xFFE0000c32
csr4
MM
0xFFE0001032
csr5
MM
0xFFE0001432
csr6
MM
0xFFE0001832
csr7
MM
0xFFE0001c32
rcr
MM
0xFFE0002032
mcr
MM
0xFFE0002432
Now the defined registers can be accessed by name via the Telnet interface:
BDI> rd csr0
BDI>rm csr0 0x01002535
Example for CP15 register definition (ARM720T):
;
id
CP15
0x0000
32
control
CP15
0x0001
32
ttb
CP15
0x0002
32
dac
CP15
0x0003
32
fsr
CP15
0x0005
32
far
CP15
0x0006
32
iidc
CP15
0x0007
32
;invalidate ID cache
itlb
CP15
0x0008
32
;invalidate TLB
itlbs
CP15
0x2008
32
;invalidate TLB single entry
pid
CP15
0x000d
32
;process identifier