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

Service_Hardware

Hardware Abstraction Layer
» Other documentation
» Service_Hardware

Service_Hardware

(Service Call &D9)
Entry
R0 Bits 0-7 sub-reason code
Bits 8-31 flags (undefined, ignore)
R1 Reason code (&D9)
R2 Pointer to device
Exit
- Depends on sub-reason code

Sub-reason code 0: Device added

Exit
- All registers must be preserved

This service call is issued by the OS after a new device has been added to the system.

Sub-reason code 1: Device being removed

Exit
R1 0 to object to device being removed
R0 → error block
Other registers must be preserved
Else all other registers must be preserved

This service call is issued by the OS before a device is removed from the system. Claiming the service call by setting R1 to 0 will block the removal of the device.

Information sources: Kernel.Docs.HAL.NewAPI, Kernel.s.HAL in CVS
Revised on December 7, 2009 17:00:17 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: Hardware Abstraction Layer, Creaton and removal of HAL devices, Other HAL related documentation, Service Calls

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