[reboot] Generalise warm reboot indicator to a flags bitmask

Allow for the possibility of additional reboot types by extending the
reboot() function to use a flags bitmask rather than a single flag.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-04-28 13:42:32 +01:00
parent ba2135d0fd
commit 7eaa2daf6f
6 changed files with 24 additions and 15 deletions

View File

@@ -51,9 +51,11 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
/**
* Reboot system
*
* @v warm Perform a warm reboot
* @v flags Reboot flags
*/
void reboot ( int warm );
void reboot ( int flags );
#define REBOOT_WARM 0x00000001 /**< Perform a warm reboot */
/**
* Power off system