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

RISCOS_AccessPhysicalAddress

Hardware Abstraction Layer
» RISC OS entry points from HAL
» RISCOS_AccessPhysicalAddress

RISCOS_AccessPhysicalAddress

(OS entry #??)
void *RISCOS_AccessPhysicalAddress(unsigned int flags, void *phys, void **oldp)
Entry
flags Bit 2 => make memory bufferable
Other bits must be zero
phys Physical address to access
oldp Pointer to location to store old state (or NULL)
Privileged mode
MMU on
FIQs on
Re-entrant
Exit
- Returns logical address corresponding to phys

Use

Arranges for the physical address phys to be mapped in to logical memory. In fact, the whole megabyte containing “phys” is mapped in (ie if phys = &12345678, then &12300000 to &123FFFFF become available). The memory is supervisor access only, non-cacheable, non-bufferable by default, and will remain available until the next call to RISCOS_Release/AccessPhysicalAddress (although interrupt routines or subroutines may temporarily map in something else).

When finished, the user should call RISCOS_ReleasePhysicalAddress.

Information sources: Kernel.Docs.HAL.HAL_API, Kernel.hdr.OSEntries in CVS
Revised on July 25, 2009 21:32:55 by Jeffrey Lee (213) (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: RISC OS entry points from HAL, RISCOS_ReleasePhysicalAddress, HAL TODO

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