public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Removed compiler issue (invalid lvalue) - CPU PXA270
@ 2007-08-30 20:48 stefano babic
  2007-09-06 23:03 ` Wolfgang Denk
  2008-01-08 13:59 ` Stefan Herbrechtsmeier
  0 siblings, 2 replies; 7+ messages in thread
From: stefano babic @ 2007-08-30 20:48 UTC (permalink / raw)
  To: u-boot

Code is broken for PXA270 due to "invalid lvalue in assignment".

This patch fix it in pxa-regs.h

Signed-off-by: Stefano Babic <sbabic@denx.de>


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0005-Removed-compiler-issue-invalid-lvalue.txt
Url: http://lists.denx.de/pipermail/u-boot/attachments/20070830/f9235461/attachment.txt 

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

* [U-Boot-Users] [PATCH] Removed compiler issue (invalid lvalue) - CPU PXA270
  2007-08-30 20:48 [U-Boot-Users] [PATCH] Removed compiler issue (invalid lvalue) - CPU PXA270 stefano babic
@ 2007-09-06 23:03 ` Wolfgang Denk
  2008-01-08 13:59 ` Stefan Herbrechtsmeier
  1 sibling, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2007-09-06 23:03 UTC (permalink / raw)
  To: u-boot

In message <46D72D2F.4020601@denx.de> you wrote:
> This is a multi-part message in MIME format.
> --------------030401040309070602030800
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
> 
> Code is broken for PXA270 due to "invalid lvalue in assignment".
> 
> This patch fix it in pxa-regs.h
> 
> Signed-off-by: Stefano Babic <sbabic@denx.de>

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Q: What do you get when you cross an ethernet with an income statement?
A: A local area networth.

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

* [U-Boot-Users] [PATCH] Removed compiler issue (invalid lvalue) - CPU PXA270
  2007-08-30 20:48 [U-Boot-Users] [PATCH] Removed compiler issue (invalid lvalue) - CPU PXA270 stefano babic
  2007-09-06 23:03 ` Wolfgang Denk
@ 2008-01-08 13:59 ` Stefan Herbrechtsmeier
  2008-01-09 12:32   ` stefano babic
  1 sibling, 1 reply; 7+ messages in thread
From: Stefan Herbrechtsmeier @ 2008-01-08 13:59 UTC (permalink / raw)
  To: u-boot

stefano babic <sbabic <at> denx.de> writes:

> 
> Code is broken for PXA270 due to "invalid lvalue in assignment".
> 
> This patch fix it in pxa-regs.h
> 
> Signed-off-by: Stefano Babic <sbabic <at> denx.de>
> 

This Patch makes wrong calculation!

The real bug can be fixed by using the old style with pointer / address (from
the linux kernel)

#define GPLR(x) 	(*((((x) & 0x7f) < 96) ? &_GPLR(x) : &GPLR3))

or by fixing the calculation

#define GPLR(x)		__REG2(0x40E00000, (((x) & 0x7f) < 96) ?
				((x) & 0x60) >> 3 : 0x100)

Which is the preferred way?

Stefan

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

* [U-Boot-Users] [PATCH] Removed compiler issue (invalid lvalue) - CPU PXA270
@ 2008-01-09 11:27 Stefan Herbrechtsmeier
  2008-01-09 12:40 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Herbrechtsmeier @ 2008-01-09 11:27 UTC (permalink / raw)
  To: u-boot

stefano babic <sbabic <at> denx.de> writes:

 >
 > Code is broken for PXA270 due to "invalid lvalue in assignment".
 >
 > This patch fix it in pxa-regs.h
 >
 > Signed-off-by: Stefano Babic <sbabic <at> denx.de>
 >

This Patch makes wrong calculation!

The real bug can be fixed by using the old style with pointer / address 
(from
the linux kernel)

#define GPLR(x)     (*((((x) & 0x7f) < 96) ? &_GPLR(x) : &GPLR3))

or by fixing the calculation

#define GPLR(x)        __REG2(0x40E00000, (((x) & 0x7f) < 96) ?
                ((x) & 0x60) >> 3 : 0x100)

Which is the preferred way?

Stefan

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

* [U-Boot-Users] [PATCH] Removed compiler issue (invalid lvalue) - CPU PXA270
  2008-01-08 13:59 ` Stefan Herbrechtsmeier
@ 2008-01-09 12:32   ` stefano babic
  0 siblings, 0 replies; 7+ messages in thread
From: stefano babic @ 2008-01-09 12:32 UTC (permalink / raw)
  To: u-boot

Stefan Herbrechtsmeier wrote:
> The real bug can be fixed by using the old style with pointer / address (from
> the linux kernel)

You are right and a patch was already sent to fix this problem, only at 
a wrong time and was not accepted (you find it in the list with the 
subject "Fix gcc issues in pxa-regs.h"). It contains the same solution 
as in Kernel. I forget to re-submit the patch, sorry.

Wolfgang has already confirmed to me that he will integrate this patch.

stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

* [U-Boot-Users] [PATCH] Removed compiler issue (invalid lvalue) - CPU PXA270
  2008-01-09 11:27 Stefan Herbrechtsmeier
@ 2008-01-09 12:40 ` Wolfgang Denk
  2008-01-09 13:00   ` Stefan Herbrechtsmeier
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2008-01-09 12:40 UTC (permalink / raw)
  To: u-boot

In message <4784AFAE.3080505@hni.uni-paderborn.de> you wrote:
> stefano babic <sbabic <at> denx.de> writes:
> 
>  >
>  > Code is broken for PXA270 due to "invalid lvalue in assignment".
>  >
>  > This patch fix it in pxa-regs.h
>  >
>  > Signed-off-by: Stefano Babic <sbabic <at> denx.de>
>  >
> 
> This Patch makes wrong calculation!

Which specific patch are you referring to? I think what you refer to
has been obsoleted by Stefnao's postings on Nov 11:

11/20 stefano babic      [U-Boot-Users] [PATCH] Fix gcc issues in pxa-regs.h

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
No problem is insoluble.
	-- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4

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

* [U-Boot-Users] [PATCH] Removed compiler issue (invalid lvalue) - CPU PXA270
  2008-01-09 12:40 ` Wolfgang Denk
@ 2008-01-09 13:00   ` Stefan Herbrechtsmeier
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Herbrechtsmeier @ 2008-01-09 13:00 UTC (permalink / raw)
  To: u-boot

Sorry, I don't know this patch and I only saw, that it was not fix in 
version 1.3.1 or the git tree.

Stefan

Wolfgang Denk schrieb:
> In message <4784AFAE.3080505@hni.uni-paderborn.de> you wrote:
>   
>> stefano babic <sbabic <at> denx.de> writes:
>>
>>  >
>>  > Code is broken for PXA270 due to "invalid lvalue in assignment".
>>  >
>>  > This patch fix it in pxa-regs.h
>>  >
>>  > Signed-off-by: Stefano Babic <sbabic <at> denx.de>
>>  >
>>
>> This Patch makes wrong calculation!
>>     
>
> Which specific patch are you referring to? I think what you refer to
> has been obsoleted by Stefnao's postings on Nov 11:
>
> 11/20 stefano babic      [U-Boot-Users] [PATCH] Fix gcc issues in pxa-regs.h
>
> Best regards,
>
> Wolfgang Denk
>
>   


-- 
Dipl.-Ing. Stefan Herbrechtsmeier

Heinz Nixdorf Institute
University of Paderborn 
System and Circuit Technology 
F?rstenallee 11
D-33102 Paderborn (Germany)

office : F0.415
phone  : + 49 5251 - 60 6342
fax    : + 49 5251 - 60 6351

mailto : hbmeier at hni.upb.de

www    : http://wwwhni.upb.de/sct/mitarbeiter/hbmeier

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

end of thread, other threads:[~2008-01-09 13:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-30 20:48 [U-Boot-Users] [PATCH] Removed compiler issue (invalid lvalue) - CPU PXA270 stefano babic
2007-09-06 23:03 ` Wolfgang Denk
2008-01-08 13:59 ` Stefan Herbrechtsmeier
2008-01-09 12:32   ` stefano babic
  -- strict thread matches above, loose matches on Subject: below --
2008-01-09 11:27 Stefan Herbrechtsmeier
2008-01-09 12:40 ` Wolfgang Denk
2008-01-09 13:00   ` Stefan Herbrechtsmeier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox