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_PlatformFeatures 0

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_PlatformFeatures
» OS_PlatformFeatures 0

OS_ PlatformFeatures 0

(SWI &6D)
Entry
R0 0 + flags (reserved)
Exit
R0 Flags
R1 Pointer to interrupt trigger routine (if bit 1 of R0 is set on exit)

Use

The purpose of this call is to return what is required to run code on the current hardware platform.

Notes

A StrongARM platform will return bits 0 – 4 set.

ARM 6 and 7 will return bits 0 – 4 clear.

Earlier machines will raise an error due to the SWI not being implemented. For such a machine, all the flags would be zero.

The routine returned in R1 is used to help trigger interrupts on CPUs where pending interrupts won’t be triggered as soon as the I bit is cleared. Enable interrupts and then call the routine to ensure that any pending interrupts have been processed. The routine is sutiable for calling from any CPU mode, and preserves all flags and registers, and is reentrant.

See also

  • OS_PlatformFeatures
  • OS_PlatformFeatures 0 Flags
Revised on August 5, 2011 13:59:43 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: OS_PlatformFeatures 0 Flags, OS_PlatformFeatures

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