RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_ReadSysInfo 12

Programmer's Reference Manuals
» Part 15 - SWI Calls
» OS
» OS_ReadSysInfo
» OS_ReadSysInfo 12

OS_ReadSysInfo 12

(SWI &58)
Entry
R0 12
R1 Pointer to word-aligned buffer, or 0 to read required buffer size
Exit
R0 Size of extended ID, or 0 if extended ID not present/corrupt
R1 Preserved. If the buffer pointer was supplied, the extended ID will have been copied into it.

Use

For machines which provide machine IDs that differ from Acorn’s traditional ID format, this call allows you to read the full, unmodified ID.

Notes

For compatability with old software, if a machine’s HAL provides an extended ID then the kernel will use that extended ID to synthesise an Acorn-style machine ID. This synthesised ID will be then be returned by any calls to OS_ReadSysInfo 2/OS_ReadSysInfo 5.

Because of this behaviour it is recommended that new software should first attempt to read the extended ID via OS_ReadSysInfo 12 before falling back on the ID returned by OS_ReadSysInfo 2/5. This will help to ensure the uniqueness of the ID that the program uses.

This call first became available in RISC OS 5.17.

See also

  • OS_ReadSysInfo
  • OS_ReadSysInfo 2
  • OS_ReadSysInfo 5
  • HAL_ExtMachineID
Created on February 20, 2011 15:36:39 by Jeffrey Lee (213) (127.0.0.1)
Edit | Views: Print | Source | Linked from: HAL_MachineID, OS_ReadSysInfo, OS_ReadSysInfo 2, OS_ReadSysInfo 5, HAL_ExtMachineID

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys