[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:
Michael Brown
2026-03-29 13:37:55 +01:00
parent 6d82975059
commit ec38e98d40
5 changed files with 17 additions and 3 deletions
+7 -1
View File
@@ -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 )
+5
View File
@@ -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