PERFORCE change 28384 for review

Peter Wemm peter at FreeBSD.org
Sun Apr 6 18:47:57 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=28384

Change 28384 by peter at peter_overcee on 2003/04/06 18:46:56

	use serial_puts for the Hello, World! instead of PING

Affected files ...

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

Differences ...

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

@@ -65,16 +65,6 @@
 	.globl	kernbase
 	.set	kernbase,KERNBASE
 
-/**********************************************************************
- *
- * Some handy macros
- *
- */
-
-#define PING(a) \
-	movq	$(a),%rdi;		\
-	call	serial_putc
-
 	.text
 /**********************************************************************
  *
@@ -92,22 +82,6 @@
 
 	call	init_serial
 
-	PING('H');
-	PING('e');
-	PING('l');
-	PING('l');
-	PING('o');
-	PING(',');
-	PING(' ');
-	PING('W');
-	PING('o');
-	PING('r');
-	PING('l');
-	PING('d');
-	PING('!');
-	PING('\r');
-	PING('\n');
-
 	movq	$str, %rdi
 	call	serial_puts
 	
@@ -130,7 +104,7 @@
 	hlt
 
 str:
-	.asciz	"this is a string\n"
+	.asciz	"Hello, World!\n"
 prf:
 	.asciz	"This is a number: %#x\n"
 #if 0


More information about the p4-projects mailing list