Skip to contentSkip to conversation

MPC824x turn off address translation code?

U-Boot-Users Jian-Bang Lai 1 participant 1 message Feb 20, 2004

lore
Share & tools
lore
#0 lore raw

Dear All:

I found following codes in start.S of mpc824x, and its goal is to turn off data and instruction address translation. But I doubt its function, can anyone help me to clarify.

Source code my attitude

mfmsr r3 /* assume the content of r3 was 0x0030 */
addis r4, 0, 0xffff /* r4 now is 0xffff, r4 <- 0xffff */
ori r4, r4, 0xffcf /* r4 now still is 0xffff, r4 <- 0xffff |
0xffcf */
and r3, r3, r4 /* r3 now still is 0x0030, r3 <- 0x0030 |
0xffff */
mtmsr r3

Besr regards,

Ban

_________________________________________________________________
???? MSN Mobile ??????????? MSN Hotmail
http://msn.com.tw/msnmobile