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_Memory

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» Service Calls
» Service_Memory

Service_Memory

(Service Call &11)
Entry
R0 Required amount of memory to change application space
R1 17 (&11)
R2 Current Active Object pointer (CAO)
Exit
R1 Value of 0 prevents re-mapping taking place

Use

This call is used when the contents-addressable memory in the memory controller is about to be re-mapped, which alters the memory map of the system. This call should be claimed if re-mapping should not take place.

A module will be initially provided the current slot size for its application workspace (beginning at &8000). However, modules do not generally need this area, as they use RMA memory instead. Therefore, when an application calls Wimp_Initialise?, the Wimp inspects the CAO, and if the value is within application workspace the Wimp does nothing. If, however, the CAO is outwith application workspace, then the Wimp will reduce the current slot size to zero automatically.

Some modules do not require application workspace, and therefore the Wimp uses this call just before returning the application to its free pool. e.g. the BASIC module does not require application workspace.

See also

  • Service Calls
  • Wimp_Initialise
Revised on December 8, 2009 20:06:55 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: The Window Manager Service Calls, 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