From: "H . J . Lu" <hjl@lucon.org>
To: Marc Karasek <marc_karasek@ivivity.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: GCC and Modules
Date: Tue, 24 Jul 2001 13:25:34 -0700 [thread overview]
Message-ID: <20010724132534.A25416@lucon.org> (raw)
In-Reply-To: <995995907.1331.5.camel@localhost.localdomain>; from marc_karasek@ivivity.com on Tue, Jul 24, 2001 at 01:31:41PM -0400
On Tue, Jul 24, 2001 at 01:31:41PM -0400, Marc Karasek wrote:
> The way to see this bug is just try to compile the MIPS kernel (either
> 2.4.1 or 2.4.3) as follows:
>
> 1) make distclean
> 2) copy linux/arch/mips/defconfig-malta linux/.config
> 3) make oldconfig
> 4) make menuconfig
> 5) change the endianess from little to big
> 6) make dep
> 7) make zImage
>
That is a kernel bug. The code only works on littl endian by accident
Here is a patch.
H.J.
--- arch/mips/mips-boards/generic/time.c.int64 Tue Jul 24 13:21:21 2001
+++ arch/mips/mips-boards/generic/time.c Tue Jul 24 13:22:02 2001
@@ -275,7 +275,7 @@ void __init time_init(void)
/* This is for machines which generate the exact clock. */
#define USECS_PER_JIFFY (1000000/HZ)
-#define USECS_PER_JIFFY_FRAC (0x100000000*1000000/HZ&0xffffffff)
+#define USECS_PER_JIFFY_FRAC ((long) (0x100000000*1000000/HZ&0xffffffff))
/* Cycle counter value at the previous timer interrupt.. */
next parent reply other threads:[~2001-07-24 20:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <25369470B6F0D41194820002B328BDD27D2E@ATLOPS>
[not found] ` <20010724085544.A20610@lucon.org>
[not found] ` <995995907.1331.5.camel@localhost.localdomain>
2001-07-24 20:25 ` H . J . Lu [this message]
2001-07-24 21:09 ` GCC and Modules Marc Karasek
2001-07-25 9:12 AW: " Andre.Messerschmidt
2001-07-25 11:24 ` Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2001-07-24 11:14 Andre.Messerschmidt
2001-07-24 15:40 ` H . J . Lu
2001-07-24 16:20 ` Ralf Baechle
2001-07-24 16:30 ` H . J . Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010724132534.A25416@lucon.org \
--to=hjl@lucon.org \
--cc=linux-mips@oss.sgi.com \
--cc=marc_karasek@ivivity.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox