Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Apr 2003 16:45:20 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28373 for review
Message-ID:  <200304062345.h36NjK6b091277@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28373

Change 28373 by peter@peter_overcee on 2003/04/06 16:45:14

	Call serial_putc correctly.  doh!
	
	We now print something from the kernel, in 64 bit mode, running at
	the compiled KERNBASE instead of having to compensate for the
	evil relocation stuff:
	
	OK load /boot/kernel64
	/boot/kernel64 text=0x138ac0 data=0x367f0+0x15360 syms=[0x4+0x28e00+0x4+0x1ce1]-
	OK unset acpi_load
	OK boot
	Hello, World!

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/locore.s#28 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/locore.s#28 (text+ko) ====

@@ -113,7 +113,7 @@
 	fillkpt(KPTphys, prot)
 
 #define PING(a) \
-	movb	$(a),%al;		\
+	movb	$(a),%bl;		\
 	call	serial_putc
 
 	.text
@@ -143,6 +143,13 @@
 	PING('l');
 	PING('l');
 	PING('o');
+	PING(',');
+	PING(' ');
+	PING('W');
+	PING('o');
+	PING('r');
+	PING('l');
+	PING('d');
 	PING('!');
 	PING('\r');
 	PING('\n');
@@ -382,8 +389,7 @@
 	testb	$0x20, %al
 	je	1b		# TX buffer not empty
 
-	movb	8(%rsp), %al
-
+	movb	%bl, %al
 	subl	$5, %edx	# TX output reg
 	outb	%al, %dx	# send this one
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304062345.h36NjK6b091277>