| To: | Ralf Baechle <ralf@uni-koblenz.de> |
|---|---|
| Subject: | Re: Why is byteorder removed from /proc/cpuinfo? |
| From: | "H . J . Lu" <hjl@lucon.org> |
| Date: | Thu, 6 Dec 2001 09:53:10 -0800 |
| Cc: | linux-mips@oss.sgi.com |
| In-reply-to: | <20011206093506.A6496@lucon.org>; from hjl@lucon.org on Thu, Dec 06, 2001 at 09:35:06AM -0800 |
| References: | <20011206093506.A6496@lucon.org> |
| Sender: | owner-linux-mips@oss.sgi.com |
| User-agent: | Mutt/1.2.5i |
On Thu, Dec 06, 2001 at 09:35:06AM -0800, H . J . Lu wrote:
> The byteorder field is emoved from /proc/cpuinfo in the current 2.4
> kernel in CVS. It breaks config.guess used by all the GNU softwares.
>
>
Here is a patch.
H.J.
----
--- arch/mips/kernel/proc.c.endian Wed Dec 5 08:02:53 2001
+++ arch/mips/kernel/proc.c Thu Dec 6 09:41:35 2001
@@ -42,6 +42,12 @@ static int show_cpuinfo(struct seq_file
mips_cpu.cputype : CPU_UNKNOWN],
(version >> 4) & 0x0f, version & 0x0f,
(fp_vers >> 4) & 0x0f, fp_vers & 0x0f);
+#if __BIG_ENDIAN
+ seq_printf(m, "byteorder\t\t: big endian\n");
+#endif
+#if __LITTLE_ENDIAN
+ seq_printf(m, "byteorder\t\t: little endian\n");
+#endif
seq_printf(m, "BogoMIPS\t\t: %lu.%02lu\n",
(loops_per_jiffy + 2500) / (500000/HZ),
((loops_per_jiffy + 2500) / (5000/HZ)) % 100);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Linux on Indy, kernel compile (2.4.14) and xfree ..., Geert Uytterhoeven |
|---|---|
| Next by Date: | Re: Why is byteorder removed from /proc/cpuinfo?, Ralf Baechle |
| Previous by Thread: | Why is byteorder removed from /proc/cpuinfo?, H . J . Lu |
| Next by Thread: | Re: Why is byteorder removed from /proc/cpuinfo?, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |