linux-mips
[Top] [All Lists]

Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)

To: linux-mips@oss.sgi.com
Subject: Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)
From: Florian Lohoff <flo@rfc822.org>
Date: Thu, 13 Dec 2001 17:56:12 +0100
In-reply-to: <20011213163953.GB23023@paradigm.rfc822.org>
Organization: rfc822 - pure communication
References: <20011213163953.GB23023@paradigm.rfc822.org>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.3.24i
On Thu, Dec 13, 2001 at 05:39:53PM +0100, Florian Lohoff wrote:
> +#ifdef __MIBSEB__
             ^^^

             *Oergs*

> +     seq_printf(m, "byteorder\t\t: big endian\n");
> +#else
> +     seq_printf(m, "byteorder\t\t: little endian\n");
> +#endif
>       seq_printf(m, "wait instruction\t: %s\n", cpu_wait ? "yes" : "no");
>       seq_printf(m, "microsecond timers\t: %s\n",
>                     (mips_cpu.options & MIPS_CPU_COUNTER) ? "yes" : "no");


Index: arch/mips/kernel/proc.c
===================================================================
RCS file: /cvs/linux/arch/mips/kernel/proc.c,v
retrieving revision 1.27.2.3
diff -u -r1.27.2.3 proc.c
--- arch/mips/kernel/proc.c     2001/12/12 13:45:58     1.27.2.3
+++ arch/mips/kernel/proc.c     2001/12/13 17:47:22
@@ -51,6 +51,11 @@
        seq_printf(m, "BogoMIPS\t\t: %lu.%02lu\n",
                      loops_per_jiffy / (500000/HZ),
                      (loops_per_jiffy / (5000/HZ)) % 100);
+#ifdef __MIPSEB__
+       seq_printf(m, "byteorder\t\t: big endian\n");
+#else
+       seq_printf(m, "byteorder\t\t: little endian\n");
+#endif
        seq_printf(m, "wait instruction\t: %s\n", cpu_wait ? "yes" : "no");
        seq_printf(m, "microsecond timers\t: %s\n",
                      (mips_cpu.options & MIPS_CPU_COUNTER) ? "yes" : "no");
Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium

Attachment: pgp1egI2ZpM7T.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>