* [patch] fix ia64_hint definition for intel compiler intrinsic
@ 2006-01-26 4:24 Chen, Kenneth W
2006-01-26 15:14 ` H. J. Lu
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Chen, Kenneth W @ 2006-01-26 4:24 UTC (permalink / raw)
To: linux-ia64
Map ia64_hint() to internal intel compiler intrinsic.
Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
---
Compile tested on selective files. icc 9.0 appears to have
memory clobber behavior for the hint@pause intrinsic similar
to gcc with "memory" clobber modifier. Your mileage may vary.
--- ./include/asm-ia64/intel_intrin.h.orig 2006-01-25 17:40:12.468497883 -0800
+++ ./include/asm-ia64/intel_intrin.h 2006-01-25 21:04:41.921472582 -0800
@@ -122,7 +122,8 @@ __s64 _m64_popcnt(__s64 a);
#define ia64_getreg __getReg
#define ia64_setreg __setReg
-#define ia64_hint(x)
+#define ia64_hint __hint
+#define ia64_hint_pause 0
#define ia64_mux1_brcst 0
#define ia64_mux1_mix 8
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [patch] fix ia64_hint definition for intel compiler intrinsic
2006-01-26 4:24 [patch] fix ia64_hint definition for intel compiler intrinsic Chen, Kenneth W
@ 2006-01-26 15:14 ` H. J. Lu
2006-01-26 18:55 ` Luck, Tony
2006-01-26 19:09 ` Chen, Kenneth W
2 siblings, 0 replies; 4+ messages in thread
From: H. J. Lu @ 2006-01-26 15:14 UTC (permalink / raw)
To: linux-ia64
On Wed, Jan 25, 2006 at 08:24:33PM -0800, Chen, Kenneth W wrote:
> Map ia64_hint() to internal intel compiler intrinsic.
>
> Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
>
> ---
> Compile tested on selective files. icc 9.0 appears to have
> memory clobber behavior for the hint@pause intrinsic similar
> to gcc with "memory" clobber modifier. Your mileage may vary.
>
>
> --- ./include/asm-ia64/intel_intrin.h.orig 2006-01-25 17:40:12.468497883 -0800
> +++ ./include/asm-ia64/intel_intrin.h 2006-01-25 21:04:41.921472582 -0800
include/asm-ia64/intel_intrin.h should just include <ia64intrin.h>.
Why not check out my patch:
http://marc.theaimsgroup.com/?l=linux-ia64&m\x113475932502202&w=2
H.J.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [patch] fix ia64_hint definition for intel compiler intrinsic
2006-01-26 4:24 [patch] fix ia64_hint definition for intel compiler intrinsic Chen, Kenneth W
2006-01-26 15:14 ` H. J. Lu
@ 2006-01-26 18:55 ` Luck, Tony
2006-01-26 19:09 ` Chen, Kenneth W
2 siblings, 0 replies; 4+ messages in thread
From: Luck, Tony @ 2006-01-26 18:55 UTC (permalink / raw)
To: linux-ia64
> include/asm-ia64/intel_intrin.h should just include <ia64intrin.h>.
> Why not check out my patch:
>
> http://marc.theaimsgroup.com/?l=linux-ia64&m\x113475932502202&w=2
There are two patches attached to that message, the first deletes
all contents from include/asm-ia64/intel_intrin.h. The second puts
in the #include <ia64intrin.h> together with a bunch of Linux specific
defines including:
+#define ia64_hint(x)
So I'd need Ken's patch on top of yours to make cpu_relax() actually
do something, right?
The second patch also changed some sn2 specific code and didn't get
an ack.
Overall, it would be interesting to get the ia64 kernel building and
running on icc (if only to get the benefit of different warning/error
checking in an alternate compiler).
-Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [patch] fix ia64_hint definition for intel compiler intrinsic
2006-01-26 4:24 [patch] fix ia64_hint definition for intel compiler intrinsic Chen, Kenneth W
2006-01-26 15:14 ` H. J. Lu
2006-01-26 18:55 ` Luck, Tony
@ 2006-01-26 19:09 ` Chen, Kenneth W
2 siblings, 0 replies; 4+ messages in thread
From: Chen, Kenneth W @ 2006-01-26 19:09 UTC (permalink / raw)
To: linux-ia64
Luck, Tony wrote on Thursday, January 26, 2006 10:55 AM
> There are two patches attached to that message, the first deletes
> all contents from include/asm-ia64/intel_intrin.h. The second puts
> in the #include <ia64intrin.h> together with a bunch of Linux specific
> defines including:
>
> +#define ia64_hint(x)
>
> So I'd need Ken's patch on top of yours to make cpu_relax() actually
> do something, right?
I believe so. My patch from yesterday maps kernel internal definition
of ia64_hint to icc intrinsic, which the standard intel icc header file
doesn't know anything about. Regardless, we need that patch.
- Ken
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-01-26 19:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-26 4:24 [patch] fix ia64_hint definition for intel compiler intrinsic Chen, Kenneth W
2006-01-26 15:14 ` H. J. Lu
2006-01-26 18:55 ` Luck, Tony
2006-01-26 19:09 ` Chen, Kenneth W
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox