summaryrefslogtreecommitdiffstats
path: root/src/arch/i386
diff options
context:
space:
mode:
authorMichael Brown2016-01-11 17:21:08 +0100
committerMichael Brown2016-01-11 17:22:16 +0100
commit7d48affec200bc1d74f42813eca0c31d548d1167 (patch)
tree9128afb4c8944dada71a928412b0ac98c93fbc03 /src/arch/i386
parent[pxe] Colourise debug output (diff)
downloadipxe-7d48affec200bc1d74f42813eca0c31d548d1167.tar.gz
ipxe-7d48affec200bc1d74f42813eca0c31d548d1167.tar.xz
ipxe-7d48affec200bc1d74f42813eca0c31d548d1167.zip
[pxe] Add debug message to display real-mode segment addresses
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/i386')
-rw-r--r--src/arch/i386/interface/pxe/pxe_call.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/arch/i386/interface/pxe/pxe_call.c b/src/arch/i386/interface/pxe/pxe_call.c
index 7da4d760..ed17a96a 100644
--- a/src/arch/i386/interface/pxe/pxe_call.c
+++ b/src/arch/i386/interface/pxe/pxe_call.c
@@ -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 )