diff --git a/src/kernel/boot/platform/openfirmware/openfirmware.h b/src/kernel/boot/platform/openfirmware/openfirmware.h index df4330b646..f5c03a6a30 100644 --- a/src/kernel/boot/platform/openfirmware/openfirmware.h +++ b/src/kernel/boot/platform/openfirmware/openfirmware.h @@ -15,6 +15,18 @@ extern int gChosen; +struct of_arguments { + const char *name; + int num_args; + int num_returns; + int data[0]; + +#ifdef __cplusplus + int &Argument(int index) { return data[index]; } + int &ReturnValue(int index) { return data[num_args + index]; } +#endif +}; + struct of_region { void *base; uint32 size;