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 @@ -2547,10 +2547,15 @@ ProcessInterrupts(void)
2547
2547
/*
2548
2548
* IA64-specific code to fetch the AR.BSP register for stack depth checks.
2549
2549
*
2550
- * We currently support gcc and icc here.
2550
+ * We currently support gcc, icc, and HP-UX inline assembly here.
2551
2551
*/
2552
2552
#if defined(__ia64__ ) || defined(__ia64 )
2553
2553
2554
+ #if defined(__hpux ) && !defined(__GNUC__ ) && !defined __INTEL_COMPILER
2555
+ #include <ia64/sys/inline.h>
2556
+ #define ia64_get_bsp () ((char *) (_Asm_mov_from_ar(_AREG_BSP, _NO_FENCE)))
2557
+ #else
2558
+
2554
2559
#ifdef __INTEL_COMPILER
2555
2560
#include <asm/ia64regs.h>
2556
2561
#endif
@@ -2571,7 +2576,7 @@ ia64_get_bsp(void)
2571
2576
#endif
2572
2577
return ret ;
2573
2578
}
2574
-
2579
+ #endif
2575
2580
#endif /* IA64 */
2576
2581
2577
2582
You can’t perform that action at this time.
0 commit comments