All of lore.kernel.org
 help / color / mirror / Atom feed
* crosscompiling and
@ 2005-01-15 18:42 Tom Vrána
  2005-01-15 18:55 ` Thiemo Seufer
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Vrána @ 2005-01-15 18:42 UTC (permalink / raw)
  To: linux-mips

Hi,

I'm just hopelesly stuck, trying to make a kernel 2.4.27 for mips SoC 
ADM5120 (MIPS 4Kc). I have the code in a 2.4.18 kernel that I'm able to 
compile. With the code merged in 2.4.27 most of the stuff works, but I 
get the following assembler errors. Like if it doesn't recognize what's 
C and what assembler code ? I am using gcc3.3 toolchain built with 
uclibc with 2.4.27 kernel headers. and I do appreciate any help....
   
          Tom


mipsel-linux-uclibc-gcc  -D__KERNEL__ 
-I/store/devel/adm/linux-2.4.27-mipscvs-20050114/include  -c -o 
mipsIRQ.o mipsIRQ.S
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h: 
Assembler messages:
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:875: 
Error: unrecognized opcode `static inline void tlb_probe(void)'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:876: 
Warning: rest of line ignored; first ignored character is `{'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:877: 
Error: unrecognized opcode `do {}while(0)'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:878: 
Error: unrecognized opcode `__asm__ __volatile__('
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:879: 
Warning: rest of line ignored; first ignored character is `"'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:880: 
Warning: rest of line ignored; first ignored character is `"'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:881: 
Warning: rest of line ignored; first ignored character is `"'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:882: 
Error: unrecognized opcode `do {}while(0)'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:883: 
Warning: rest of line ignored; first ignored character is `}'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:885: 
Error: unrecognized opcode `static inline void tlb_read(void)'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:886: 
Warning: rest of line ignored; first ignored character is `{'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:887: 
Error: unrecognized opcode `do {}while(0)'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:888: 
Error: unrecognized opcode `__asm__ __volatile__('
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:889: 
Warning: rest of line ignored; first ignored character is `"'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:890: 
Warning: rest of line ignored; first ignored character is `"'
/store/devel/adm/linux-2.4.27-mipscvs-20050114/include/asm/mipsregs.h:891: 
Warning: rest of line ignored; first ignored character is `"'
---- SNIP ---- (few hundred more complaints from other included header 
files)

-- 
 Tomas Vrana  <tom@voda.cz>
 --------------------------
 VODA IT consulting, Borkovany 48, 691 75
 http://www.voda.cz/
 phone: +420 519 419 416 mobile: +420 603 469 305 UIN: 105142752

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

* Re: crosscompiling and
  2005-01-15 18:42 crosscompiling and Tom Vrána
@ 2005-01-15 18:55 ` Thiemo Seufer
  2005-01-15 19:21   ` Tom Vrána
  0 siblings, 1 reply; 4+ messages in thread
From: Thiemo Seufer @ 2005-01-15 18:55 UTC (permalink / raw)
  To: Tom Vrána; +Cc: linux-mips

Tom Vrána wrote:
> Hi,
> 
> I'm just hopelesly stuck, trying to make a kernel 2.4.27 for mips SoC 
> ADM5120 (MIPS 4Kc). I have the code in a 2.4.18 kernel that I'm able to 
> compile. With the code merged in 2.4.27 most of the stuff works, but I 
> get the following assembler errors. Like if it doesn't recognize what's 
> C and what assembler code ? I am using gcc3.3 toolchain built with 
> uclibc with 2.4.27 kernel headers. and I do appreciate any help....
>   
>          Tom
> 
> 
> mipsel-linux-uclibc-gcc  -D__KERNEL__ 
> -I/store/devel/adm/linux-2.4.27-mipscvs-20050114/include  -c -o 
> mipsIRQ.o mipsIRQ.S

It fails to add -D__ASSEMBLY__ for some reason. I guess the cause is
some broken Makefile in your tree.


Thiemo

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

* Re: crosscompiling and ...
  2005-01-15 18:55 ` Thiemo Seufer
@ 2005-01-15 19:21   ` Tom Vrána
  2005-01-15 19:47     ` Thiemo Seufer
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Vrána @ 2005-01-15 19:21 UTC (permalink / raw)
  To: linux-mips

Thiemo Seufer wrote:

>Tom Vrána wrote:
>  
>
>>Hi,
>>
>>I'm just hopelesly stuck, trying to make a kernel 2.4.27 for mips SoC 
>>ADM5120 (MIPS 4Kc). I have the code in a 2.4.18 kernel that I'm able to 
>>compile. With the code merged in 2.4.27 most of the stuff works, but I 
>>get the following assembler errors. Like if it doesn't recognize what's 
>>C and what assembler code ? I am using gcc3.3 toolchain built with 
>>uclibc with 2.4.27 kernel headers. and I do appreciate any help....
>>  
>>         Tom
>>
>>
>>mipsel-linux-uclibc-gcc  -D__KERNEL__ 
>>-I/store/devel/adm/linux-2.4.27-mipscvs-20050114/include  -c -o 
>>mipsIRQ.o mipsIRQ.S
>>    
>>
>
>It fails to add -D__ASSEMBLY__ for some reason. I guess the cause is
>some broken Makefile in your tree.
>
>
>Thiemo
>  
>
Thanks, your guess is right ;-) I got that one one fixed. What I got now 
is a complaint:

mipsIRQ.S: Assembler messages:
mipsIRQ.S:116: Error: absolute expression required `li'
mipsIRQ.S:120: Error: absolute expression required `and'
mipsIRQ.S:127: Error: absolute expression required `and'

the trouble causing code is this (STATUS_IE) :

LEAF(mips_int_lock)
        .set noreorder
        mfc0    v0, CP0_STATUS
        li              v1, ~STATUS_IE
        and             v1, v1, v0
        mtc0    v1, CP0_STATUS
        j               ra
        and             v0, v0, STATUS_IE
        .set reorder
END(mips_int_lock)


LEAF(mips_int_unlock)
        mfc0    v0, CP0_STATUS
        and             a0, a0, STATUS_IE
        or              v0, v0, a0
        mtc0    v0, CP0_STATUS
        j               ra
        nop
END(mips_int_unlock)

Any hints here ?


-- 
 Tomas Vrana  <tom@voda.cz>
 --------------------------
 VODA IT consulting, Borkovany 48, 691 75
 http://www.voda.cz/
 phone: +420 519 419 416 mobile: +420 603 469 305 UIN: 105142752

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

* Re: crosscompiling and ...
  2005-01-15 19:21   ` Tom Vrána
@ 2005-01-15 19:47     ` Thiemo Seufer
  0 siblings, 0 replies; 4+ messages in thread
From: Thiemo Seufer @ 2005-01-15 19:47 UTC (permalink / raw)
  To: Tom Vrána; +Cc: linux-mips

Tom Vrána wrote:
[snip]
> Thanks, your guess is right ;-) I got that one one fixed. What I got now 
> is a complaint:
> 
> mipsIRQ.S: Assembler messages:
> mipsIRQ.S:116: Error: absolute expression required `li'
> mipsIRQ.S:120: Error: absolute expression required `and'
> mipsIRQ.S:127: Error: absolute expression required `and'
> 
> the trouble causing code is this (STATUS_IE) :
> 
> LEAF(mips_int_lock)
>         .set noreorder
>         mfc0    v0, CP0_STATUS
>         li              v1, ~STATUS_IE

STATUS_IE isn't visible for the preprocessor, which means the assembler
sees a symbol named "status_ie" instead of an immediate constant.


Thiemo

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

end of thread, other threads:[~2005-01-15 19:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-15 18:42 crosscompiling and Tom Vrána
2005-01-15 18:55 ` Thiemo Seufer
2005-01-15 19:21   ` Tom Vrána
2005-01-15 19:47     ` Thiemo Seufer

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.