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_Memory

OS SWI Calls
» 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 (32 bit)
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
17 &11 Memory access privileges
18 &12 Find access privilege
19 &13 Prepare for DMA
20 &14 Compatibility settings
21 &15 Map in IO permanent from 64 bit space
22 &16 Map in IO temporary from 64 bit space
23 &17 Reserve RAM pages
24 &18 Check memory access
25 &19 Read controller presence and base physical address
64 &40 General page block operations (64 bit)
65 &41 Logical to physical address translation

See also

  • OS_Memory Page Blocks (32 bit)
  • OS_Memory Page Blocks (64 bit)
Revised on April 29, 2021 12:09:33 by Jeffrey Lee (213) (31.49.209.212)
Edit | Back in time (12 revisions) | See changes | History | Views: Print | Source | Linked from: OS_Memory 24, OS_Memory 9, OS_Memory 10, OS_Memory 10 Flags, OS_Memory 12, OS_Memory 25, HAL_PhysInfo, OS SWI Calls, Memory Map Request Block, OS_Memory 9 Controller Numbers, OS_Memory Page Blocks, OS_Memory 0 Flags, OS_Memory 7, OS_Memory 13, OS_Memory 13 Flags, OS_Memory 6, OS_Memory 8, OS_Memory 14, OS_Memory 14 Flags, OS_Memory 15, OS_Memory 0, OS_Memory 12 Flags, Memory Page Access Flags, OS_Memory 16, OS_Memory 16 Flags, OS_Memory 17, OS_Memory 18, OS_Memory 8 Flags, OS_Memory 20, OS SWI Calls (français), OS_Memory 19 Input Function, OS_Memory 19, OS_Memory 19 Output Function, OS_Memory 21, OS_Memory 22, OS_Memory 23, OS_Memory Page Blocks (64 bit), OS_Memory 64, OS_Memory 65

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