mirror of
https://github.com/ipxe/ipxe
synced 2026-05-23 20:00:12 +03:00
[disklog] Generalise CONSOLE_INT13 to CONSOLE_DISKLOG
The name "int13" is intrinsically specific to a BIOS environment. Generalise the build configuration option CONSOLE_INT13 to CONSOLE_DISKLOG, in preparation for adding EFI disk log console support. Existing configurations using CONSOLE_INT13 will continue to work. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -38,7 +38,13 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
*
|
||||
*/
|
||||
|
||||
/* Set default console usage if applicable */
|
||||
/* Set default console usage if applicable
|
||||
*
|
||||
* We accept either CONSOLE_DISKLOG or CONSOLE_INT13.
|
||||
*/
|
||||
#if ( defined ( CONSOLE_DISKLOG ) && ! defined ( CONSOLE_INT13 ) )
|
||||
#define CONSOLE_INT13 CONSOLE_DISKLOG
|
||||
#endif
|
||||
#if ! ( defined ( CONSOLE_INT13 ) && CONSOLE_EXPLICIT ( CONSOLE_INT13 ) )
|
||||
#undef CONSOLE_INT13
|
||||
#define CONSOLE_INT13 ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_LOG )
|
||||
|
||||
@@ -15,6 +15,11 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
|
||||
#define SECTORS 32
|
||||
#define CYLADDR(cyl) ((((cyl) * HEADS + (((cyl) == 0) & 1)) * SECTORS) * 512)
|
||||
|
||||
/* Accept CONSOLE_DISKLOG as a synonym for CONSOLE_INT13 */
|
||||
#if ( defined ( CONSOLE_DISKLOG ) && ! defined ( CONSOLE_INT13 ) )
|
||||
#define CONSOLE_INT13 CONSOLE_DISKLOG
|
||||
#endif
|
||||
|
||||
#ifdef CONSOLE_INT13
|
||||
#define LOGPART 1
|
||||
#define LOGSTART 0
|
||||
|
||||
Reference in New Issue
Block a user