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_Reset

Hardware Abstraction Layer
HAL entry points from RISC OS
» HAL_Reset

HAL_Reset

(HAL entry #84)
void HAL_Reset(int type,void *l1pt)
Entry
type Reset type:
0 = Hard reset and turn the power off (i.e. just turn the power off)
1 = Hard reset and leave the power on
>1 = Reserved
l1pt Pointer to level 1 page table
Exit
- This call does not return

Use

This resets the board depending on the value in type. Asking HAL_PlatformInfo will tell you if the hardware allows the power to be turned off by software, if it doesn’t then behaviour is per type = 1.

A pointer to the level 1 page table is provided in order to allow platforms which lack software-accessible hardware reset (e.g. IOMD) to implement their own soft reset mechanism. E.g. by disabling the MMU and restarting the HAL/ROM image.

User software must always use SWI OS_Reset instead of calling this entry directly.

Information source: Kernel.Docs.HAL.HAL_API in CVS
Revised on February 27, 2012 13:25:27 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: HAL entry points from RISC OS, HAL entry points by number, OMAP3 HAL

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