mpc823rg Freescale Semiconductor, Inc, mpc823rg Datasheet - Page 267

no-image

mpc823rg

Manufacturer Part Number
mpc823rg
Description
Mpc823 Powerquicc Integrated Communications Processor For Portable Systems
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Memory Management Unit
11.8.1.1 TRANSLATION RELOAD EXAMPLES. The following are code examples for
generating the real page number using a two-level tree page table structure. The first
example is for a data TLB reload and the second is for an instruction TLB reload. Notice that
the following assumptions are made:
dtlb_swtw
itlb_swtw
• M_TWB holds the base pointer to the first level table.
• Both instruction and data address translation is turned off (MSR
mtspr
mfspr
lwz
mtspr
mfspr
lwz
mtspr
mfspr
rfi
mtspr
mfspr
mtspr
mfspr
lwz
mtspr
mtspr
mfspr
lwz
mtspr
mfspr
rfi
Freescale Semiconductor, Inc.
For More Information On This Product,
MPC823 REFERENCE MANUAL
M_TW, R1
R1, M_TWB
R1, (R1)
MD_TWC,R1
R1, MD_TWC
R1, (R1)
MD_RPN, R1
R1, M_TW
M_TW, R1
R1, SRR0
MD_EPN, R1
R1, M_TWB
R1, (R1)
MI_TWC,R1
MD_TWC,R1
R1, MD_TWC
R1, (R1)
MI_RPN, R1
R1, M_TW
Go to: www.freescale.com
# save R1
# load R1 with level one pointer
# Load level one page entry
# save level two base pointer and
# level one attributes
# load R1 with level two pointer
# while taking into account the
# page size
# Load level two page entry
# Write TLB entry
# restore R1
# save R1
# load R1 with instruction miss
# effective address (the same data
# may be taken from the MI_EPN
# register)
# save instruction miss effective
# address in MD_EPN
# load R1 with level one pointer
# Load level one page entry
# save level one attributes
# save level two base pointer
# load R1 with level two pointer
# while taking into account the
# page size
# Load level two page entry
# Write TLB entry
# restore R1
IR
=0 and MSR
MOTOROLA
DR
=0).

Related parts for mpc823rg