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 21

OS SWI Calls
» OS_Memory
» OS_Memory 21

OS_ Memory 21

(SWI &68)
Entry
R0 21 (&15), and flags
R1 Physical address to map in (low 32 bits)
R2 Physical address to map in (high 32 bits)
R3 Size to map in
Exit
R0 Preserved
R1 Preserved
R2 Preserved
R3 Logical address assigned

Use

The purpose of this call is to permanently map in a region of IO memory at run-time.

This call was introduced in RISC OS 5.27, to improve upon the existing OS_Memory 13 call (which can only deal with 32-bit physical addresses). For compatibility with older OS versions, it’s recommended to use OS_Memory 13 whenever 32-bit physical addresses are sufficient.

See also

  • OS_Memory
  • OS_Memory 13 Flags
  • OS_Memory 13
Created on August 28, 2019 13:55:02 by Jeffrey Lee (213)

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.
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