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 0

OS SWI Calls
» OS_Memory
» OS_Memory 0

OS_Memory 0

(SWI &68)
Entry
R0 0, and flags,
R1 Pointer to page block list
R2 Number of entries in page block list
Exit
R0 Preserved
R1 Preserved
R2 Preserved

Use

The purpose of this call is to convert between different memory spaces used to specify addresses in a page block, and alter their cache-ability.

Notes

The addresses must be in RAM; specifically, they must all correspond to pages which the OS has assigned a valid physical page number to. E.g. I/O memory which has been mapped by OS_Memory 13 will not be recognised.

Addresses need not be page aligned. If a page is made uncacheable, the relevant portion of the CPU cache will be flushed. If there is an error processing any page in the block, the call has no effect on any pages.

Because the page block format is restricted to 32 bit addresses, attempting to look up the physical address of a page which has a physical address of 2^32 or higher will cause the call to fail with an error. To avoid this, OS_Memory 64 should be used instead.

See also

  • OS_Memory
  • OS_Memory 0 Flags
  • OS_Memory Page Blocks
  • OS_Memory 64
Revised on April 29, 2021 11:58:18 by Jeffrey Lee (213) (31.49.209.212)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: OS_Memory Page Blocks, OS_Memory 0 Flags, OS_Memory, Memory Cache Policies, GraphicsV 6, Kernel notes, Physical Memory Pool, OS_SetMemMapEntries, OS_Memory 19, Addressing the end-of-life of AArch32, 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