RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_DynamicArea 23 (changes)

Showing changes from revision #0 to #1: Added | Removed | Changed

OS_DynamicArea
» OS_DynamicArea 23

OS_DynamicArea 23

(SWI &66)
Entry
R0 23 (reason code)
R1 Area number
R2 Resize amount (positive/negative page count)
Exit
R2 Amount size of area has changed by (unsigned page count)

Use

This call is used to alter the maximum physical size of a Physical Memory Pool.

Notes

This allows you to change the value of R9 that was passed to OS_DynamicArea 0 when the PMP was created.

Compared to regular dynamic areas, PMPs have extra memory overheads that are directly related to the maximum physical size of the area. So for large PMPs which may spend most of their time empty (e.g. RAMFS) it’s recommended to dynamically adjust the physical size of the PMP to avoid wasting memory.

Note that when shrinking a PMP, the shrink will only succeed if the last N entries of the page list are unclaimed pages. If there are pages allocated then they must be released first (via OS_DynamicArea 21.

If the SWI returns an error, R2 will still have been updated to indicate the amount of the change that succeeded.

See also

  • OS_DynamicArea
  • OS_DynamicArea 21
  • Physical Memory Pool
Created on August 17, 2016 13:46:44 by Jeffrey Lee (213) (5.148.5.244)
Edit | Views: Print | Source | Linked from: OS_DynamicArea, Physical Memory Pool

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 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