File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2967,10 +2967,15 @@ ProcessInterrupts(void)
2967
2967
/*
2968
2968
* IA64-specific code to fetch the AR.BSP register for stack depth checks.
2969
2969
*
2970
- * We currently support gcc and icc here.
2970
+ * We currently support gcc, icc, and HP-UX inline assembly here.
2971
2971
*/
2972
2972
#if defined(__ia64__ ) || defined(__ia64 )
2973
2973
2974
+ #if defined(__hpux ) && !defined(__GNUC__ ) && !defined __INTEL_COMPILER
2975
+ #include <ia64/sys/inline.h>
2976
+ #define ia64_get_bsp () ((char *) (_Asm_mov_from_ar(_AREG_BSP, _NO_FENCE)))
2977
+ #else
2978
+
2974
2979
#ifdef __INTEL_COMPILER
2975
2980
#include <asm/ia64regs.h>
2976
2981
#endif
@@ -2991,6 +2996,7 @@ ia64_get_bsp(void)
2991
2996
#endif
2992
2997
return ret ;
2993
2998
}
2999
+ #endif
2994
3000
#endif /* IA64 */
2995
3001
2996
3002
You can’t perform that action at this time.
0 commit comments