mirror of
https://github.com/thamugadi/powerpc-ofw-boot.git
synced 2024-06-04 07:29:28 +00:00
21 lines
354 B
C
21 lines
354 B
C
|
#include <ofw.h>
|
||
|
|
||
|
extern void (*ofw)();
|
||
|
|
||
|
int32_t milliseconds(void)
|
||
|
{
|
||
|
struct
|
||
|
{
|
||
|
char* service;
|
||
|
int32_t n_args;
|
||
|
int32_t n_rets;
|
||
|
int32_t ret;
|
||
|
} ofw_arg;
|
||
|
|
||
|
SERVICE("milliseconds", 13, 0, 1);
|
||
|
|
||
|
ofw(&ofw_arg);
|
||
|
|
||
|
return ofw_arg.ret;
|
||
|
}
|