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

HAL_PhysInfo

Hardware Abstraction Layer
HAL entry points from RISC OS
» HAL_PhysInfo

HAL_PhysInfo

(HAL entry #105)
uint HAL_PhysInfo(void *table,uint *rammax)
Entry
table Location to store physical memory map table
rammax Location to store max physical RAM address
Exit
- Returns min physical RAM address, or required size of physical memory map table

Use

This call is used to the physical memory arrangement table of the machine, as per SWI OS_Memory reason codes 6 and 7. User software should always use the OS_Memory SWI instead of making this call directly.

If table is NULL, OS_Memory 6 behaviour is taken: rammax should be ignored, and the size (in bytes) required to store the physical memory arrangement table is returned.

If table is non-NULL, then it should be filled with the physical memory arrangement table, as per OS_Memory 7. However, it is the kernel’s responsibility to fill in information about the available RAM, so all RAM pages should be marked as (NotPresent OR NotAvailable). To aid the kernel in filling in the RAM map, the return value of the function must be the lowest address which physical RAM can exist, and rammax must be filled with the highest address (inclusive) in which physical RAM can exist. The kernel will then update the relevant areas of the table to indicate how much RAM is actually available.

Information sources: Kernel.s.MemInfo, HAL.Tungsten.s.Boot in CVS
Revised on February 8, 2012 13:59:00 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: HAL entry points from RISC OS, HAL entry points by number

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
  • Export
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