[Top] [All Lists]

Re: Compiler Problems in tlbex-r4k.S

To: Geert Uytterhoeven <>
Subject: Re: Compiler Problems in tlbex-r4k.S
From: Ralf Baechle <>
Date: Thu, 23 Oct 2003 18:33:31 +0200
Cc: Ralf R?sch <>, Linux/MIPS Development <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <>
User-agent: Mutt/1.4.1i
On Thu, Oct 23, 2003 at 11:43:27AM +0200, Geert Uytterhoeven wrote:

> > If I change the line 43 from:
> > #define PTE_PAGE_SIZE       (1L << PTE_PAGE_SHIFT)
> > to
> > #define PTE_PAGE_SIZE       (1 << PTE_PAGE_SHIFT)
> > the compiling is o.k.

The fix for this went into CVS yesterday.

> That's a programming error. The assembler doesn't know 1L, it needs plain 1.
> Yes, it makes life hard, if you want to share your definitions between the
> C compiler and the assembler.

It's a PITA that gas doesn't accept constants in the same syntax as C
does.  It means we have to extract many constants into offset.h before
they can be used in assembler code.  One of the small things on my
wishlist for x-mas ;-)


<Prev in Thread] Current Thread [Next in Thread>