mirror of
https://github.com/thamugadi/powerpc-ofw-boot.git
synced 2024-06-01 18:41:28 +00:00
24 lines
380 B
C
24 lines
380 B
C
#include <ofw.h>
|
|
|
|
extern void (*ofw)();
|
|
|
|
int32_t ofw_test(char* name)
|
|
{
|
|
struct
|
|
{
|
|
char* service;
|
|
int32_t n_args;
|
|
int32_t n_rets;
|
|
char* arg;
|
|
int32_t ret;
|
|
} ofw_arg;
|
|
|
|
SERVICE("test", 5, 1, 1);
|
|
|
|
ofw_arg.arg = name;
|
|
|
|
ofw(&ofw_arg);
|
|
return ofw_arg.ret;
|
|
}
|
|
|