cp15 register access

Oct 01, 2005 2 Replies

hi i m trying to access cp15 registers in data abort handler. I understand that to access cp15 registers u got to be in privileged mode, so as im in data abort handler the mrc instruction should work. But as i do compiler shows following error...



58 0000008c MRC p15, #0, r1, c0, c0, #0 "/vobs/global/esf/bsp/boot/armthumb/regDump.s", line 61: Error: A1152E: Unexpected operator 61 00000090 MRC p15, #0, r1, c0, c0, #1 "/vobs/global/esf/bsp/boot/armthumb/regDump.s", line 64: Error: A1152E: Unexpected operator 64 00000094 MRC p15, #0, r1, c0, c0, #2 "/vobs/global/esf/bsp/boot/armthumb/regDump.s", line 67: Error: A1152E: Unexpected operator 67 00000098

for all the registers access using MRC instruction.. I am not able to figure out the problem...anybody can help me out?



thanks girish



It seems you are not using the syntax that your assembler requires.

Michael N. Moran (h) 770 516 7918 5009 Old Field Ct. (c) 678 521 5460 Kennesaw, GA, USA 30144 http://mnmoran.org "So often times it happens, that we live our lives in chains and we never even know we have the key." The Eagles, "Already Gone" The Beatles were wrong: 1 & 1 & 1 is 1

Try dropping the '#'. Make sure you have the right value for opcode_2.

- Mary

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required