david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[pxe] Add debug message to display real-mode segment addresses

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2016-01-11 16:21:08 +00:00
parent 07e14bfb8a
commit 7d48affec2
1 changed files with 11 additions and 0 deletions

View File

@ -54,6 +54,12 @@ extern void pxe_int_1a ( void );
/** INT 1A hooked flag */
static int int_1a_hooked = 0;
/** Real-mode code segment size */
extern char _text16_memsz[];
/** Real-mode data segment size */
extern char _data16_memsz[];
/** PXENV_UNDI_TRANSMIT API call profiler */
static struct profiler pxe_api_tx_profiler __profiler =
{ .name = "pxeapi.tx" };
@ -331,6 +337,11 @@ int pxe_start_nbp ( void ) {
int discard_b, discard_c, discard_d, discard_D;
uint16_t status;
DBGC ( &pxe_netdev, "PXE NBP starting with netdev %s, code %04x:%04x, "
"data %04x:%04x\n", ( pxe_netdev ? pxe_netdev->name : "<none>" ),
rm_cs, ( ( unsigned int ) _text16_memsz ),
rm_ds, ( ( unsigned int ) _data16_memsz ) );
/* Allow restarting NBP via PXENV_RESTART_TFTP */
jmp = rmsetjmp ( pxe_restart_nbp );
if ( jmp )