Patch for qspan_pci.c problem with GCC 2.95.2

3 messages, 3 authors, 2000-01-10 · open the first message on its own page

Patch for qspan_pci.c problem with GCC 2.95.2

From: Wohlgemuth, Jason <hidden>
Date: 2000-01-10 14:55:44

Anyone trying to build in pci support to the kernel using GCC 2.95.2 may
find this patch helpful.

It seems that in the inline-assembly in qspan_pci.c the compiler doesn't
recognize that the first argument to the assembly may be modified.  This
resulted in a register getting trashed where it shouldn't have.  To fix the
problem I modified the in-line assembly to tell the compiler that this
register has been changed.

86c86
<               : "=r"(x) : "r"(addr) : "%0")
---
              : "=r"(x) : "r"(addr))
Jason [off-list ref]

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: Patch for qspan_pci.c problem with GCC 2.95.2

From: Dan Malek <hidden>
Date: 2000-01-10 19:39:21

Wohlgemuth, Jason wrote:

problem I modified the in-line assembly to tell the compiler that this
register has been changed.

86c86
<               : "=r"(x) : "r"(addr) : "%0")
---
quoted
              : "=r"(x) : "r"(addr))

Well, that is an interesting way to do it.  We have been adding
temporary variables and using "+m" directives......

Thanks.


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Where Do I start ?

From: Silmaril Mail <hidden>
Date: 2000-01-10 21:10:57

Hi All , Like the subject says where to I start ?

	I would like a ppc board - as cheap as pos. with ethernet and hdd support ?
any ideas
	Is there a faq ? is so where ?
	How to I set a a xcompiler ?
	What is the best host hardware to use ?

Thanks in advance

Gav


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help