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_Memory

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

OS_Memory

(SWI &68)
Entry
R0 Reason code (bits 0 -7),
Flags (bits 8 – 31) which are reason code specific
All other registers are dependent on reason code
Exit
R0 Preserved
All other registers dependent on reason code

Use

The purpose of this call is to perform various operations for memory management.

Notes

The action performed depends on the reason code value in R0.

The flags (passed by R0 on entry) are specific to each reason code.

Reason Codes

# Hex # Action
0 &00 General page block operations
1 &01 Reserved for system use
2 &02 Reserved for system use
3 &03 Reserved for system use
4 &04 Reserved for system use
5 &05 Reserved for system use
6 &06 Read the size of the physical memory arrangement table
7 &07 Read the physical memory arrangement table
8 &08 Read the amount of a specified sort of memory available
9 &09 Read controller presence and base logical address
10 &0A Free pool lock
11 &0B Reserved for system use
12 &0C Recommend page
13 &0D Map in IO permanent
14 &0E Map in IO temporary
15 &0F Map out temporary IO
16 &10 Memory areas
24 &18 Check memory access
25 &19 Read controller presence and base physical address

See also

  • OS_Memory Page Blocks
Revised on July 5, 2011 13:35:14 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (4 revisions) | See changes | History | Views: Print | Source | Linked from: OS_Memory 9, OS_Memory 10, OS_Memory 12, OS_Memory 10 Flags, OS_Memory 25, OS_Memory 24, HAL_PhysInfo, OS SWI Calls, OS_Memory 0, OS_Memory Page Blocks, OS_Memory 6, OS_Memory 7, OS_Memory 8, OS_Memory 8 Flags, OS_Memory 13, OS_Memory 13 Flags, OS_Memory 14, OS_Memory 14 Flags, OS_Memory 15, OS_Memory 16 Flags, OS_MMUControl 1 Flags, OS_Memory 9 Controller Numbers, OS_Memory 0 Flags, OS_Memory 16

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