RTEMS 6.3
Loading...
Searching...
No Matches
ofwarch.c File Reference

Architecture dependent parts of OpenFirmware interface. More...

#include <boot/ofwarch.h>
#include <boot/ofw.h>
#include <string.h>
#include <boot/register.h>
#include <boot/main.h>

Functions

int ofw_translate_failed (ofw_arg_t flag)
int ofw_cpu (uint16_t mid_mask, uintptr_t physmem_start)
int ofw_get_physmem_start (uintptr_t *start)

Detailed Description

Architecture dependent parts of OpenFirmware interface.

Function Documentation

◆ ofw_cpu()

int ofw_cpu ( uint16_t mid_mask,
uintptr_t physmem_start )

Finds out the current CPU's MID and wakes up all AP processors.

◆ ofw_get_physmem_start()

int ofw_get_physmem_start ( uintptr_t * start)

Get physical memory starting address.

Parameters
startPointer to variable where the physical memory starting address will be stored.
Returns
Non-zero on succes, zero on failure.