PERFORCE change 28956 for review
Robert Drehmel
robert at FreeBSD.org
Mon Apr 14 15:17:08 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28956
Change 28956 by robert at robert_spes on 2003/04/14 15:16:19
If `sgimips' is defined, use u_int64_t as the type for
the count variable to force an eight byte alignment on the
stack. A pointer to it is passed to the ARC BIOS' read and
write functions. This makes both arc_getchar() and
arc_putchar() work.
Affected files ...
.. //depot/projects/mips/sys/boot/arc/lib/arcconsole.c#2 edit
Differences ...
==== //depot/projects/mips/sys/boot/arc/lib/arcconsole.c#2 (text+ko) ====
@@ -68,7 +68,11 @@
arc_putchar(int c)
{
char cbuf = c;
+#ifdef sgimips
+ u_int64_t count;
+#else
u_int32_t count;
+#endif
Write(StandardOut, &cbuf, 1, &count);
}
@@ -79,7 +83,11 @@
arc_getchar()
{
char cbuf;
+#ifdef sgimips
+ u_int64_t count;
+#else
u_int32_t count;
+#endif
arc_putchar('_');
arc_putchar('\b');
More information about the p4-projects
mailing list