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_ReleaseDeviceVector

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

OS_ReleaseDeviceVector

(SWI &4C)
Entry
R0 Device number
R1 Address of device driver routine
R2 Value to be passed in R12 when driver is called
R3 Address of interrupt status if R0 = podule “IRQ” or “FIQ as IRQ” on entry
R4 Interrupt mask to use, if R0 = podule “IRQ” or “FIQ as IRQ” on entry
Exit
R0 Preserved
R1 Preserved
R2 Preserved
R3 Preserved
R4 Preserved

Use

The purpose of this call is to remove a driver from the list of claimants of a device vector.

Notes

The device vector is identified by the contents of the register on entry; R0-R2 (R0-R4 if R0 relates to one of the podule device numbers (see Podule_ReadInfo?) when registered) must be the same as when the vector was claimed.

The previous vector owner is re-installed at the head of the chain. If there is no previous owner, then the IRQs from the corresponding device are disabled.

You must not attempt to disable a device’s IRQs within the IO controller when you release its vector. For expansion card IRQs, you should prevent your device from interrupting again by programming the hardware locally on your expansion card.

See also

  • OS_ClaimDeviceVector
  • Podule_ReadInfo?
  • System Device Numbers
Created on December 1, 2009 21:46:50 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: System Device Numbers, Kernel notes, OS_ClaimDeviceVector, OS SWI Calls, Interrupts Introduction

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