log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Archive Edition 27:2 reviewed (News:)
- RISC OS 5.30 arrives (News:12)
- Rougol Talk May 2024 - Andy Vawer (News:)
- Rougol May 2024 meeting on monday with Andy Vawer (News:1)
- WROCC May 2024 meeting - Gerph talks games (News:)
- Drag'n'Drop 13i3 edition reviewed (News:1)
- Wakefield Show 2024 in Pictures (News:5)
- April 2024 News Summary (News:2)
- Upgrading your RISC OS system to 5.30 (News:2)
- WROCC May 2024 meeting on wednesday - Gerph talks games (News:)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
The Icon Bar: 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
PhlamethrowerHot 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
PhlamethrowerHot 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 ]
 

The Icon Bar: Programming: CPU identification