/boot/trunk/arch/ppc32/loader/ofw.c |
---|
27,6 → 27,7 |
*/ |
#include "ofw.h" |
#include "asm.h" |
#include "printf.h" |
#define MAX_OFW_ARGS 10 |
113,12 → 114,6 |
} |
void halt(void) |
{ |
ofw_call("exit", 0, 0); |
} |
void ofw_write(const char *str, const int len) |
{ |
if (ofw_stdout == 0) |
134,12 → 129,6 |
} |
int ofw_map(const void *phys, const void *virt, const int size, const int mode) |
{ |
return ofw_call("call-method", 6, 1, "map", ofw_mmu, mode, size, virt, phys); |
} |
int ofw_memmap(memmap_t *map) |
{ |
int i; |