Acorn Arcade forums: Programming: CPU identification
|
CPU identification |
|
Phlamethrower (10:30 3/2/2007) jmb (13:30 3/2/2007) Phlamethrower (13:44 3/2/2007)
|
|
Jeffrey Lee |
Message #98044, posted by Phlamethrower at 10:30, 3/2/2007 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
I'm trying to use MRC to get the CPU ID (CP15 register 0). But on both my Iyonix and my StrongARM, I'm getting an unidentified instruction error
I'm using MRC P15,0,R0,C0,C0,0 to read the ID into R0, as dictated by application note 99. as compiles this to 0xEE100F10, which looks like the right opcode to me, and the OS disassembler annotates it as an instruction to read the CPU ID. But it doesn't seem to work.
Is the instruction/opcode wrong? Is there some caveat I've missed which says it can't be used in user mode? Is the moon made of cheese?
Help! |
|
[ Log in to reply ] |
|
JMB |
Message #98056, posted by jmb at 13:30, 3/2/2007, in reply to message #98044 |
Member
Posts: 467
|
Is there some caveat I've missed which says it can't be used in user mode? Yes |
|
[ Log in to reply ] |
|
Jeffrey Lee |
Message #98057, posted by Phlamethrower at 13:44, 3/2/2007, in reply to message #98056 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
Yay! It works properly now
Thanks, JMB. Thmb. |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: CPU identification |