* Patch for qspan_pci.c problem with GCC 2.95.2
@ 2000-01-10 14:55 Wohlgemuth, Jason
2000-01-10 19:39 ` Dan Malek
0 siblings, 1 reply; 3+ messages in thread
From: Wohlgemuth, Jason @ 2000-01-10 14:55 UTC (permalink / raw)
To: 'linuxppc-embedded@lists.linuxppc.org'
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 <jwohlgem@mindspring.com>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Patch for qspan_pci.c problem with GCC 2.95.2 2000-01-10 14:55 Patch for qspan_pci.c problem with GCC 2.95.2 Wohlgemuth, Jason @ 2000-01-10 19:39 ` Dan Malek 2000-01-10 21:10 ` Where Do I start ? Silmaril Mail 0 siblings, 1 reply; 3+ messages in thread From: Dan Malek @ 2000-01-10 19:39 UTC (permalink / raw) To: Wohlgemuth, Jason; +Cc: 'linuxppc-embedded@lists.linuxppc.org' 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") > --- > > : "=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/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Where Do I start ? 2000-01-10 19:39 ` Dan Malek @ 2000-01-10 21:10 ` Silmaril Mail 0 siblings, 0 replies; 3+ messages in thread From: Silmaril Mail @ 2000-01-10 21:10 UTC (permalink / raw) To: linuxppc-embedded 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/ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-01-10 21:10 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2000-01-10 14:55 Patch for qspan_pci.c problem with GCC 2.95.2 Wohlgemuth, Jason 2000-01-10 19:39 ` Dan Malek 2000-01-10 21:10 ` Where Do I start ? Silmaril Mail
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).