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_Memory 9

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_Memory
» OS_Memory 9

OS_Memory 9

(SWI &68)
Entry
R0 9, all flag bits reserved
R1 Controller number
Exit
R0 Preserved
R1 Controller base logical address, or 0 if not present

Use

The purpose of this call is to check for the presence of a given controller and return its base logical address if present. The behaviour of this SWI differs slightly between RISC OS 5 and RISC OS Select/Adjust. Under RISC OS 5 the SWI will return an error if the controller number is unrecognised, or 0 if the controller isn’t present. Under RISC OS Select/Adjust the SWI will return an error under both situations. Also under RISC OS Select/Adjust, even if the controller exists there is no guarantee that the memory will have been mapped in by the kernel. Therefore programs should also use OS_Memory 25 where appropriate, in order to allow them to map in the memory themselves.

See also

  • OS_Memory
  • OS_Memory 9 Controller Numbers
  • OS_Memory 25
Revised on July 5, 2011 13:55:16 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: HAL_ControllerAddress, OS_Memory 25, OS_Memory 9 Controller Numbers, OS_Memory

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