cp15 register access

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

Reply to
drizal
Loading thread data ...

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
 Click to see the full signature
Reply to
Michael N. Moran

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

- Mary

Reply to
mary

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.