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
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISC OS London Show Report 2024 (News:1)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
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
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
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 ]
 

Acorn Arcade forums: Programming: CPU identification