svn commit: r209755 - in projects/altix/sys: dev/uart ia64/include
Marcel Moolenaar
marcel at FreeBSD.org
Wed Jul 7 04:06:38 UTC 2010
Author: marcel
Date: Wed Jul 7 04:06:38 2010
New Revision: 209755
URL: http://svn.freebsd.org/changeset/base/209755
Log:
Use an unbuffered transmit function for low-level console output.
Modified:
projects/altix/sys/dev/uart/uart_dev_sgisn.c
projects/altix/sys/ia64/include/sal.h
Modified: projects/altix/sys/dev/uart/uart_dev_sgisn.c
==============================================================================
--- projects/altix/sys/dev/uart/uart_dev_sgisn.c Wed Jul 7 02:16:47 2010 (r209754)
+++ projects/altix/sys/dev/uart/uart_dev_sgisn.c Wed Jul 7 04:06:38 2010 (r209755)
@@ -84,8 +84,11 @@ static void
sgisn_putc(struct uart_bas *bas, int c)
{
struct ia64_sal_result result;
+ char buf[1];
- result = ia64_sal_entry(SAL_SGISN_PUTC, c, 0, 0, 0, 0, 0, 0);
+ buf[0] = c;
+ result = ia64_sal_entry(SAL_SGISN_TXBUF, (uintptr_t)buf, 1UL, 0, 0, 0,
+ 0, 0);
}
static int
Modified: projects/altix/sys/ia64/include/sal.h
==============================================================================
--- projects/altix/sys/ia64/include/sal.h Wed Jul 7 02:16:47 2010 (r209754)
+++ projects/altix/sys/ia64/include/sal.h Wed Jul 7 04:06:38 2010 (r209755)
@@ -119,6 +119,7 @@ struct sal_ap_wakeup_descriptor {
#define SAL_SGISN_PUTC 0x02000021
#define SAL_SGISN_GETC 0x02000022
#define SAL_SGISN_POLL 0x02000026
+#define SAL_SGISN_TXBUF 0x02000028
#define SAL_SGISN_IOHUB_INFO 0x02000055
#define SAL_SGISN_IOBUS_INFO 0x02000056
More information about the svn-src-projects
mailing list