File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2991,10 +2991,15 @@ ProcessInterrupts(void)
2991
2991
/*
2992
2992
* IA64-specific code to fetch the AR.BSP register for stack depth checks.
2993
2993
*
2994
- * We currently support gcc and icc here.
2994
+ * We currently support gcc, icc, and HP-UX inline assembly here.
2995
2995
*/
2996
2996
#if defined(__ia64__ ) || defined(__ia64 )
2997
2997
2998
+ #if defined(__hpux ) && !defined(__GNUC__ ) && !defined __INTEL_COMPILER
2999
+ #include <ia64/sys/inline.h>
3000
+ #define ia64_get_bsp () ((char *) (_Asm_mov_from_ar(_AREG_BSP, _NO_FENCE)))
3001
+ #else
3002
+
2998
3003
#ifdef __INTEL_COMPILER
2999
3004
#include <asm/ia64regs.h>
3000
3005
#endif
@@ -3015,7 +3020,7 @@ ia64_get_bsp(void)
3015
3020
#endif
3016
3021
return ret ;
3017
3022
}
3018
-
3023
+ #endif
3019
3024
#endif /* IA64 */
3020
3025
3021
3026
You can’t perform that action at this time.
0 commit comments