From: Dan Aizenstros <dan@quicklogic.com>
To: Jun Sun <jsun@mvista.com>
Cc: Hanks Li <hli@quicklogic.com>, linux-mips@oss.sgi.com
Subject: Re: Big endian problem
Date: Fri, 12 Oct 2001 16:13:50 -0400 [thread overview]
Message-ID: <3BC74EFE.9020109@quicklogic.com> (raw)
In-Reply-To: 3BC72CCC.3604FEC8@mvista.com
Hello Jun,
The file is the common time.c from linux/arch/mips/kernel as you
can see from the third to last line of Hanshi's email. The tools
he is using are from H. J. Lu's RedHat 7.1 RPMs on the oss.sgi.com
ftp site. The file compiles just fine with the little endian version
of the same tools from the same place.
Hanshi and I will look at the USECS_PER_JIFFY_FRAC macro. Thanks for
the pointer.
-- Dan A.
Jun Sun wrote:
> Which time.c is this? I have seen this problem caused by mis-defined
> USECS_PER_JIFFY_FRAC macro. Look at other time.c files for the right one.
>
> Or better yet, upgrade your port to use the common time.c. See
> Documantation/mips/time.README file.
>
> Jun
>
> Hanks Li wrote:
>
>>Hi,
>>
>>Has anyone tried to compile in Big Endian mode? When I compile the code in
>>big endian, I got the following message. Does anybody know how to solve this
>>problem? The assembler I'm using is "GNU assembler 2.11.90.0.27". I have no
>>problem compiling the code in little endian at all.
>>
>>Thanks
>>
>>Hanshi Li
>>
>>----------------------------------------------------------------------------
>>------------------------------------
>>mips-linux-gcc -I
>>/home/hli/linux/include/asm/gcc -D__KERNEL__ -I/home/hli/linux/include -Wall
>> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-ali
>>asing -fno-common -G
>>0 -mno-abicalls -fno-pic -mcpu=r5000 -mips2 -Wa,--trap -pipe -DEXPORT_SYMTAB
>> -c time.c
>>Assembler messages:
>>Warning: The -mcpu option is deprecated. Please use -march and -mtune
>>instead.
>>time.c: In function `calibrate_div32_gettimeoffset':
>>time.c:225: Unrecognizable insn:
>>(insn 60 144 66 (parallel[
>>(set (reg:SI 8 t0)
>>(asm_operands (".set push
>>.set noat
>>.set noreorder
>>b 1f
>>li %4,0x21
>>0:
>>sll $1,%0,0x1
>>srl %3,%0,0x1f
>>or %0,$1,$2
>>sll %1,%1,0x1
>>sll %2,%2,0x1
>>1:
>>bnez %3,2f
>>sltu $2,%0,%z5
>>bnez $2,3f
>>2:
>>addiu %4,%4,-1
>>subu %0,%0,%z5
>>addiu %2,%2,1
>>3:
>>bnez %4,0b
>>srl $2,%1,0x1f
>>.set pop") ("=&r") 0[
>>(reg/v:SI 4 a0)
>>(reg:SI 8 t0)
>>(reg:DI 6 a2)
>>(reg/v:SI 5 a1)
>>(reg:SI 9 t1)
>>]
>>[
>>(asm_input:SI ("Jr"))
>>(asm_input:SI ("0"))
>>(asm_input:DI ("1"))
>>(asm_input:SI ("2"))
>>(asm_input:SI ("3"))
>>] ("time.c") 201))
>>(set (reg:SI 6 a2)
>>(asm_operands (".set push
>>.set noat
>>.set noreorder
>>b 1f
>>li %4,0x21
>>0:
>>sll $1,%0,0x1
>>srl %3,%0,0x1f
>>or %0,$1,$2
>>sll %1,%1,0x1
>>sll %2,%2,0x1
>>1:
>>bnez %3,2f
>>sltu $2,%0,%z5
>>bnez $2,3f
>>2:
>>addiu %4,%4,-1
>>subu %0,%0,%z5
>>addiu %2,%2,1
>>3:
>>bnez %4,0b
>>srl $2,%1,0x1f
>>.set pop") ("=&r") 1[
>>(reg/v:SI 4 a0)
>>(reg:SI 8 t0)
>>(reg:DI 6 a2)
>>(reg/v:SI 5 a1)
>>(reg:SI 9 t1)
>>]
>>[
>>(asm_input:SI ("Jr"))
>>(asm_input:SI ("0"))
>>(asm_input:DI ("1"))
>>(asm_input:SI ("2"))
>>(asm_input:SI ("3"))
>>] ("time.c") 201))
>>(set (reg/v:SI 5 a1)
>>(asm_operands (".set push
>>.set noat
>>.set noreorder
>>b 1f
>>li %4,0x21
>>0:
>>sll $1,%0,0x1
>>srl %3,%0,0x1f
>>or %0,$1,$2
>>sll %1,%1,0x1
>>sll %2,%2,0x1
>>1:
>>bnez %3,2f
>>sltu $2,%0,%z5
>>bnez $2,3f
>>2:
>>addiu %4,%4,-1
>>subu %0,%0,%z5
>>addiu %2,%2,1
>>3:
>>bnez %4,0b
>>srl $2,%1,0x1f
>>.set pop") ("=&r") 2[
>>(reg/v:SI 4 a0)
>>(reg:SI 8 t0)
>>(reg:DI 6 a2)
>>(reg/v:SI 5 a1)
>>(reg:SI 9 t1)
>>]
>>[
>>(asm_input:SI ("Jr"))
>>(asm_input:SI ("0"))
>>(asm_input:DI ("1"))
>>(asm_input:SI ("2"))
>>(asm_input:SI ("3"))
>>] ("time.c") 201))
>>(set (reg:SI 9 t1)
>>(asm_operands (".set push
>>.set noat
>>.set noreorder
>>b 1f
>>li %4,0x21
>>0:
>>sll $1,%0,0x1
>>srl %3,%0,0x1f
>>or %0,$1,$2
>>sll %1,%1,0x1
>>sll %2,%2,0x1
>>1:
>>bnez %3,2f
>>sltu $2,%0,%z5
>>bnez $2,3f
>>2:
>>addiu %4,%4,-1
>>subu %0,%0,%z5
>>addiu %2,%2,1
>>3:
>>bnez %4,0b
>>srl $2,%1,0x1f
>>.set pop") ("=&r") 3[
>>(reg/v:SI 4 a0)
>>(reg:SI 8 t0)
>>(reg:DI 6 a2)
>>(reg/v:SI 5 a1)
>>(reg:SI 9 t1)
>>]
>>[
>>(asm_input:SI ("Jr"))
>>(asm_input:SI ("0"))
>>(asm_input:DI ("1"))
>>(asm_input:SI ("2"))
>>(asm_input:SI ("3"))
>>] ("time.c") 201))
>>(set (reg:SI 14 t6)
>>(asm_operands (".set push
>>.set noat
>>.set noreorder
>>b 1f
>>li %4,0x21
>>0:
>>sll $1,%0,0x1
>>srl %3,%0,0x1f
>>or %0,$1,$2
>>sll %1,%1,0x1
>>sll %2,%2,0x1
>>1:
>>bnez %3,2f
>>sltu $2,%0,%z5
>>bnez $2,3f
>>2:
>>addiu %4,%4,-1
>>subu %0,%0,%z5
>>addiu %2,%2,1
>>3:
>>bnez %4,0b
>>srl $2,%1,0x1f
>>.set pop") ("=&r") 4[
>>(reg/v:SI 4 a0)
>>(reg:SI 8 t0)
>>(reg:DI 6 a2)
>>(reg/v:SI 5 a1)
>>(reg:SI 9 t1)
>>]
>>[
>>(asm_input:SI ("Jr"))
>>(asm_input:SI ("0"))
>>(asm_input:DI ("1"))
>>(asm_input:SI ("2"))
>>(asm_input:SI ("3"))
>>] ("time.c") 201))
>>(clobber (reg:QI 2 v0))
>>(clobber (reg:QI 1 at))
>>] ) -1 (insn_list:REG_DEP_OUTPUT 13 (insn_list 38 (insn_list 53 (insn_list
>>51 (insn_list 41 (nil))))))
>>(nil))
>>time.c:225: confused by earlier errors, bailing out
>>make[1]: *** [time.o] Error 1
>>make[1]: Leaving directory `/home/hli/linux/arch/mips/kernel'
>>make: *** [_dir_arch/mips/kernel] Error 2
>>----------------------------------------------------------------------------
>>---------------------------------
>>
next prev parent reply other threads:[~2001-10-12 20:12 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-12 16:26 Big endian problem Hanks Li
2001-10-12 16:26 ` Hanks Li
2001-10-12 17:45 ` Ralf Baechle
2001-10-12 17:47 ` Jun Sun
2001-10-12 20:13 ` Dan Aizenstros [this message]
2001-10-13 0:35 ` Jun Sun
2001-10-13 0:55 ` Thiemo Seufer
2001-10-13 5:54 ` H . J . Lu
2001-10-13 5:54 ` H . J . Lu
2001-10-13 21:02 ` MySQL Yoshi-K
2001-10-13 21:02 ` MySQL Yoshi-K
2001-10-14 16:30 ` MySQL H . J . Lu
2001-10-14 21:01 ` MySQL Ralf Baechle
2001-10-15 5:46 ` MySQL H . J . Lu
2001-10-16 14:28 ` IDE DMA mode in Big endian for mips Hanks Li
2001-10-16 14:28 ` Hanks Li
2001-10-16 17:30 ` Jun Sun
2001-10-17 2:38 ` Atsushi Nemoto
2001-10-17 5:48 ` Geert Uytterhoeven
2001-10-17 9:33 ` Gleb O. Raiko
2001-10-17 11:43 ` Atsushi Nemoto
2001-10-18 2:18 ` Atsushi Nemoto
2001-10-18 5:54 ` Geert Uytterhoeven
2001-10-18 10:33 ` Gleb O. Raiko
2001-10-17 17:52 ` Hanks Li
2001-10-17 17:52 ` Hanks Li
2001-10-19 9:54 ` Atsushi Nemoto
2001-10-21 16:50 ` Alan Cox
2001-10-21 16:50 ` Alan Cox
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=3BC74EFE.9020109@quicklogic.com \
--to=dan@quicklogic.com \
--cc=hli@quicklogic.com \
--cc=jsun@mvista.com \
--cc=linux-mips@oss.sgi.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.