diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/null_reboot.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/null_reboot.c b/src/core/null_reboot.c index 8e3ed0bb6..a3d5b2ef8 100644 --- a/src/core/null_reboot.c +++ b/src/core/null_reboot.c @@ -27,6 +27,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); */ #include <stdio.h> +#include <errno.h> #include <ipxe/reboot.h> /** @@ -40,4 +41,15 @@ static void null_reboot ( int warm __unused ) { while ( 1 ) {} } +/** + * Power off system + * + * @ret rc Return status code + */ +static int null_poweroff ( void ) { + + return -ENOTSUP; +} + PROVIDE_REBOOT ( null, reboot, null_reboot ); +PROVIDE_REBOOT ( null, poweroff, null_poweroff ); |