[gPXE] early print message

Michael Brown mbrown at fensystems.co.uk
Mon Apr 5 15:06:24 EDT 2010


On Saturday 03 Apr 2010 09:19:49 Geert Stappers wrote:
> Op 20100402 om 23:21 schreef Michael Brown:
> > On Friday 02 April 2010 11:48:48 Geert Stappers wrote:
> > > What should I do to "early print strings"?
> >
> > Use the various print_xxx functions in libprefix.S, which are already
> > available to you.
> >
> |diff --git a/src/arch/i386/prefix/mbr.S b/src/arch/i386/prefix/mbr.S
> |index adfe204..ae37337 100644
> |--- a/src/arch/i386/prefix/mbr.S
> |+++ b/src/arch/i386/prefix/mbr.S
> |@@ -5,6 +5,11 @@
> | 	.org 0
> |
> | mbr:
> |+	movw	$outROM, %si
> |+	movw	$0x0000, %di
> |+	jmp	1
> |+outROM:	.asciz	"out ROM, in gPXE\r\n"
> |+1:	call	print_message
> | 	movw	$exec_sector, %bp
> | 	jmp	find_active_partition
> | exec_sector:
> 
> Results in a hang while executing on qemu.

Sorry; I hadn't noticed which file you were editing.  libprefix.S routines are 
not available from mbr.S.

Michael


More information about the gPXE mailing list