Date: Mon, 14 Apr 2003 15:17:06 -0700 (PDT) From: Robert Drehmel <robert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 28956 for review Message-ID: <200304142217.h3EMH6n0089983@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28956 Change 28956 by robert@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');
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304142217.h3EMH6n0089983>