powerpc-ofw-boot/entry/ofw_common.c

24 lines
364 B
C
Raw Normal View History

2023-07-01 11:08:55 +00:00
#include <ofw.h>
extern void (*ofw)();
int ofw_test(char* name)
{
struct
{
char* service;
int n_args;
int n_rets;
char* arg;
int ret;
} ofw_arg;
2023-07-01 11:23:50 +00:00
SERVICE("test", 5, 1, 1);
2023-07-01 11:08:55 +00:00
ofw_arg.arg = name;
ofw(&ofw_arg);
return ofw_arg.ret;
}