linux-mips
[Top] [All Lists]

Re: [PATCH v3] MIPS: Clean up the calculation of VMLINUZ_LOAD_ADD

To: wu zhangjin <wuzhangjin@gmail.com>
Subject: Re: [PATCH v3] MIPS: Clean up the calculation of VMLINUZ_LOAD_ADDRESS
From: Sam Ravnborg <sam@ravnborg.org>
Date: Wed, 2 Jun 2010 06:48:27 +0200
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips <linux-mips@linux-mips.org>, Alexander Clouter <alex@digriz.org.uk>, Manuel Lauss <manuel.lauss@gmail.com>
In-reply-to: <AANLkTikR8qY2NwurQ76R1F-AQ4QcmmqXvoWtlOqCB5Ou@mail.gmail.com>
References: <616317d6d889537d03c3c0860231da9a2cce0b69.1275372093.git.wuzhangjin@gmail.com> <20100601152750.GA5131@merkur.ravnborg.org> <AANLkTikR8qY2NwurQ76R1F-AQ4QcmmqXvoWtlOqCB5Ou@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.18 (2008-05-17)
> >
> > Note: The load_addr local variable _must_ use "=" asignment
> 
> This is the _key_ stuff. I  tried to use VMLINUZ_LOAD_ADDR(like your
> load_addr) as the load address, but failed all the time, seems I used
> the ":=" assignment, now with "=", it works, thanks!

:= evaluate at once. So the right hand side is executed when Make see the line.
= do late evaluation, so the right hand side is executed/evaluated when
required.

In your case you need the late version because calc_vmlinux_load_Addr needs
to be built before you do the evaluation.

        Sam

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