PERFORCE change 28381 for review

Peter Wemm peter at FreeBSD.org
Sun Apr 6 18:39:45 PDT 2003


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

Change 28381 by peter at peter_overcee on 2003/04/06 18:38:44

	add a helper function, serial_puts(char *string), for easy calling
	from asm.

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#40 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#40 (text+ko) ====

@@ -1656,3 +1656,16 @@
 	}
 	return 0;
 }
+
+extern void serial_putc(int);
+void serial_puts(char *);
+
+void
+serial_puts(char *s)
+{
+	while (*s) {
+		if (*s == '\n')
+			serial_putc('\r');
+		serial_putc(*s++);
+	}
+}


More information about the p4-projects mailing list