Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] /proc/cpuinfo endianess (autoconf dependencie)
@ 2001-12-13 16:39 Florian Lohoff
  2001-12-13 16:56 ` Florian Lohoff
  2001-12-13 17:01 ` Bradley D. LaRonde
  0 siblings, 2 replies; 8+ messages in thread
From: Florian Lohoff @ 2001-12-13 16:39 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

Something like this should be needed for current kernel to make
autoconf happy ...


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:39:19
@@ -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 __MIBSEB__
+	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 #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)
  2001-12-13 16:39 [PATCH] /proc/cpuinfo endianess (autoconf dependencie) Florian Lohoff
@ 2001-12-13 16:56 ` Florian Lohoff
  2001-12-13 17:01 ` Bradley D. LaRonde
  1 sibling, 0 replies; 8+ messages in thread
From: Florian Lohoff @ 2001-12-13 16:56 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]

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 #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)
  2001-12-13 16:39 [PATCH] /proc/cpuinfo endianess (autoconf dependencie) Florian Lohoff
  2001-12-13 16:56 ` Florian Lohoff
@ 2001-12-13 17:01 ` Bradley D. LaRonde
  2001-12-13 17:01   ` Bradley D. LaRonde
                     ` (2 more replies)
  1 sibling, 3 replies; 8+ messages in thread
From: Bradley D. LaRonde @ 2001-12-13 17:01 UTC (permalink / raw)
  To: Florian Lohoff, linux-mips

For autoconf?  Why need to ask the kernel?  Aren't there other very simple
ways of determining build endianness in userspace?

Regards,
Brad

----- Original Message -----
From: "Florian Lohoff" <flo@rfc822.org>
To: <linux-mips@oss.sgi.com>
Sent: Thursday, December 13, 2001 11:39 AM
Subject: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)

Something like this should be needed for current kernel to make
autoconf happy ...

--- arch/mips/kernel/proc.c 2001/12/12 13:45:58 1.27.2.3
+++ arch/mips/kernel/proc.c 2001/12/13 17:39:19
@@ -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 __MIBSEB__
+ 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");

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)
  2001-12-13 17:01 ` Bradley D. LaRonde
@ 2001-12-13 17:01   ` Bradley D. LaRonde
  2001-12-13 17:04   ` Florian Lohoff
  2001-12-13 17:05   ` Florian Lohoff
  2 siblings, 0 replies; 8+ messages in thread
From: Bradley D. LaRonde @ 2001-12-13 17:01 UTC (permalink / raw)
  To: Florian Lohoff, linux-mips

For autoconf?  Why need to ask the kernel?  Aren't there other very simple
ways of determining build endianness in userspace?

Regards,
Brad

----- Original Message -----
From: "Florian Lohoff" <flo@rfc822.org>
To: <linux-mips@oss.sgi.com>
Sent: Thursday, December 13, 2001 11:39 AM
Subject: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)

Something like this should be needed for current kernel to make
autoconf happy ...

--- arch/mips/kernel/proc.c 2001/12/12 13:45:58 1.27.2.3
+++ arch/mips/kernel/proc.c 2001/12/13 17:39:19
@@ -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 __MIBSEB__
+ 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");

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)
  2001-12-13 17:01 ` Bradley D. LaRonde
  2001-12-13 17:01   ` Bradley D. LaRonde
@ 2001-12-13 17:04   ` Florian Lohoff
  2001-12-13 17:13     ` Bradley D. LaRonde
  2001-12-13 17:05   ` Florian Lohoff
  2 siblings, 1 reply; 8+ messages in thread
From: Florian Lohoff @ 2001-12-13 17:04 UTC (permalink / raw)
  To: Bradley D. LaRonde; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 597 bytes --]

On Thu, Dec 13, 2001 at 12:01:34PM -0500, Bradley D. LaRonde wrote:
> 
> For autoconf?  Why need to ask the kernel?  Aren't there other very simple
> ways of determining build endianness in userspace?
> 

There is - But autoconf in the current version is broken and needs this
to gather the endianess - As we currently have to live with it this is
a 2.4 issue - 2.5 should fix this and remove endianess from
/proc/cpuinfo.

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)
  2001-12-13 17:01 ` Bradley D. LaRonde
  2001-12-13 17:01   ` Bradley D. LaRonde
  2001-12-13 17:04   ` Florian Lohoff
@ 2001-12-13 17:05   ` Florian Lohoff
  2 siblings, 0 replies; 8+ messages in thread
From: Florian Lohoff @ 2001-12-13 17:05 UTC (permalink / raw)
  To: Bradley D. LaRonde; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 749 bytes --]

On Thu, Dec 13, 2001 at 12:01:34PM -0500, Bradley D. LaRonde wrote:
> For autoconf?  Why need to ask the kernel?  Aren't there other very simple
> ways of determining build endianness in userspace?
> 

Ah - Here is the responsible autoconf bit from config.guess:

   mips:Linux:*:*)
       case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
         big)    echo mips-unknown-linux-gnu && exit 0 ;;
         little) echo mipsel-unknown-linux-gnu && exit 0 ;;
       esac

This has already been discussed and probably even fixed in autoconf
upstream ...

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)
  2001-12-13 17:04   ` Florian Lohoff
@ 2001-12-13 17:13     ` Bradley D. LaRonde
  2001-12-13 17:13       ` Bradley D. LaRonde
  0 siblings, 1 reply; 8+ messages in thread
From: Bradley D. LaRonde @ 2001-12-13 17:13 UTC (permalink / raw)
  To: Florian Lohoff; +Cc: linux-mips

----- Original Message -----
From: "Florian Lohoff" <flo@rfc822.org>
To: "Bradley D. LaRonde" <brad@ltc.com>
Cc: <linux-mips@oss.sgi.com>
Sent: Thursday, December 13, 2001 12:04 PM
Subject: Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)

> There is - But autoconf in the current version is broken and needs
> this to gather the endianess - As we currently have to live with it
> this is a 2.4 issue - 2.5 should fix this and remove endianess from
> /proc/cpuinfo.

I understand, thanks for the explanation.  So the patch should only go in
the 2.4 branch?

Regards,
Brad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)
  2001-12-13 17:13     ` Bradley D. LaRonde
@ 2001-12-13 17:13       ` Bradley D. LaRonde
  0 siblings, 0 replies; 8+ messages in thread
From: Bradley D. LaRonde @ 2001-12-13 17:13 UTC (permalink / raw)
  To: Florian Lohoff; +Cc: linux-mips

----- Original Message -----
From: "Florian Lohoff" <flo@rfc822.org>
To: "Bradley D. LaRonde" <brad@ltc.com>
Cc: <linux-mips@oss.sgi.com>
Sent: Thursday, December 13, 2001 12:04 PM
Subject: Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie)

> There is - But autoconf in the current version is broken and needs
> this to gather the endianess - As we currently have to live with it
> this is a 2.4 issue - 2.5 should fix this and remove endianess from
> /proc/cpuinfo.

I understand, thanks for the explanation.  So the patch should only go in
the 2.4 branch?

Regards,
Brad

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-12-13 18:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-13 16:39 [PATCH] /proc/cpuinfo endianess (autoconf dependencie) Florian Lohoff
2001-12-13 16:56 ` Florian Lohoff
2001-12-13 17:01 ` Bradley D. LaRonde
2001-12-13 17:01   ` Bradley D. LaRonde
2001-12-13 17:04   ` Florian Lohoff
2001-12-13 17:13     ` Bradley D. LaRonde
2001-12-13 17:13       ` Bradley D. LaRonde
2001-12-13 17:05   ` Florian Lohoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox