mirror of
https://github.com/ipxe/ipxe
synced 2026-01-23 20:49:40 +03:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user