powerpc-ofw-boot/entry/ofw_common.c

24 lines
380 B
C
Raw Normal View History

2023-07-01 11:08:55 +00:00
#include <ofw.h>
extern void (*ofw)();
2023-07-01 14:07:47 +00:00
int32_t ofw_test(char* name)
2023-07-01 11:08:55 +00:00
{
struct
{
char* service;
2023-07-01 14:07:47 +00:00
int32_t n_args;
int32_t n_rets;
2023-07-01 11:08:55 +00:00
char* arg;
2023-07-01 14:07:47 +00:00
int32_t ret;
2023-07-01 11:08:55 +00:00
} 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;
}