Browse Source

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

Signed-off-by: Michael Brown <mcb30@etherboot.org>
tags/v0.9.8
Daniel Verkamp 15 years ago
parent
commit
cb9700ef6f
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      src/arch/i386/interface/syslinux/comboot_call.c

+ 9
- 1
src/arch/i386/interface/syslinux/comboot_call.c View File

39
 #include <gpxe/init.h>
39
 #include <gpxe/init.h>
40
 #include <gpxe/image.h>
40
 #include <gpxe/image.h>
41
 #include <usr/imgmgmt.h>
41
 #include <usr/imgmgmt.h>
42
+#include "config/console.h"
43
+#include "config/serial.h"
42
 
44
 
43
 /** The "SYSLINUX" version string */
45
 /** The "SYSLINUX" version string */
44
 static char __data16_array ( syslinux_version, [] ) = "gPXE " VERSION;
46
 static char __data16_array ( syslinux_version, [] ) = "gPXE " VERSION;
456
 		break;
458
 		break;
457
 
459
 
458
 	case 0x000B: /* Get Serial Console Configuration */
460
 	case 0x000B: /* Get Serial Console Configuration */
459
-		/* FIXME: stub */
461
+#if defined(CONSOLE_SERIAL) && !defined(COMPRESERVE)
462
+		ix86->regs.dx = COMCONSOLE;
463
+		ix86->regs.cx = 115200 / COMSPEED;
464
+		ix86->regs.bx = 0;
465
+#else
460
 		ix86->regs.dx = 0;
466
 		ix86->regs.dx = 0;
467
+#endif
468
+
461
 		ix86->flags &= ~CF;
469
 		ix86->flags &= ~CF;
462
 		break;
470
 		break;
463
 
471
 

Loading…
Cancel
Save