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

Page "Message_PlugIn_Abort" does not exist. Please create it now, or hit the "back" button in your browser.

OS_DelinkApplication

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

OS_DelinkApplication

(SWI &4D)
Entry
R0 Pointer to buffer
R1 Buffer size in bytes
Exit
R0 Preserved
R1 Number of bytes left in buffer

Use

The purpose of this call is to remove any vectors that an application is using.

Notes

When an application running at &8000 is going to be swapped out, it must remove all vectors that it uses. Otherwise, if the kernel attempted to call the vector it would jump into whatever happened to be at this memory address in whatever application was running at the time – probably with disastrous results.

The buffer is used to store details of the vectors used, so they can be restored afterwards with OS_RelinkApplication.

Each vector requires 12 bytes of storage and the list is terminated by a single byte. If the space left is 0, you are to allocate another buffer and repeat the call; the first buffer is still valid, only the vectors which didn’t fit into it are placed into the second buffer. When relinking you must pass all buffers used by this call.

See also

  • OS_RelinkApplication
Revised on November 26, 2010 12:39:06 by Trevor Johnson (329)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: OS SWI Calls, OS_RelinkApplication, Software Vectors

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