2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-12 06:16:29 +00:00

[comboot] Implement INT 22h AX=000Bh (Get Serial Console Configuration)

Signed-off-by: Michael Brown <mcb30@etherboot.org>
This commit is contained in:
Daniel Verkamp 2009-06-23 16:57:05 -04:00 committed by Michael Brown
parent 4fe1e08a60
commit cb9700ef6f

View File

@ -39,6 +39,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <gpxe/init.h>
#include <gpxe/image.h>
#include <usr/imgmgmt.h>
#include "config/console.h"
#include "config/serial.h"
/** The "SYSLINUX" version string */
static char __data16_array ( syslinux_version, [] ) = "gPXE " VERSION;
@ -456,8 +458,14 @@ static __asmcall void int22 ( struct i386_all_regs *ix86 ) {
break;
case 0x000B: /* Get Serial Console Configuration */
/* FIXME: stub */
#if defined(CONSOLE_SERIAL) && !defined(COMPRESERVE)
ix86->regs.dx = COMCONSOLE;
ix86->regs.cx = 115200 / COMSPEED;
ix86->regs.bx = 0;
#else
ix86->regs.dx = 0;
#endif
ix86->flags &= ~CF;
break;