linux-mips
[Top] [All Lists]

[PATCH] /proc/cpuinfo endianess

To: linux-mips@oss.sgi.com
Subject: [PATCH] /proc/cpuinfo endianess
From: Florian Lohoff <flo@rfc822.org>
Date: Fri, 8 Feb 2002 14:40:23 +0100
Cc: ralf@oss.sgi.com
Organization: rfc822 - pure communication
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.3.25i
Again a LTPDS solution:


Index: arch/mips/kernel/proc.c
===================================================================
RCS file: /cvs/linux/arch/mips/kernel/proc.c,v
retrieving revision 1.27.2.6
diff -u -r1.27.2.6 proc.c
--- arch/mips/kernel/proc.c     2002/01/07 01:16:33     1.27.2.6
+++ arch/mips/kernel/proc.c     2002/02/08 13:37:18
@@ -97,6 +97,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: pgp3hKvNpp1N0.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] /proc/cpuinfo endianess, Florian Lohoff <=