Skip to content
Permalink
Browse files

Fix build on FreeBSD/powerpc64.

Signed-off-by: Piotr Kubaj <pkubaj@anongoth.pl>
  • Loading branch information...
pkubaj committed Jun 25, 2019
1 parent 7faf42b commit eebfeba7680e4b81f0803f44999c86303aa5945b
Showing with 193 additions and 193 deletions.
  1. +3 −3 common_power.h
  2. +1 −1 kernel/power/axpy.S
  3. +1 −1 kernel/power/axpy_ppc440.S
  4. +3 −3 kernel/power/cgemm_kernel_8x4_power8.S
  5. +3 −3 kernel/power/ctrmm_kernel_8x4_power8.S
  6. +2 −2 kernel/power/dgemm_kernel_16x4_power8.S
  7. +2 −2 kernel/power/dtrmm_kernel_16x4_power8.S
  8. +2 −2 kernel/power/dtrsm_kernel_LT_16x4_power8.S
  9. +1 −1 kernel/power/gemm_beta.S
  10. +3 −3 kernel/power/gemm_kernel.S
  11. +1 −1 kernel/power/gemm_kernel_altivec.S
  12. +1 −1 kernel/power/gemm_kernel_altivec_cell.S
  13. +1 −1 kernel/power/gemm_kernel_altivec_g4.S
  14. +3 −3 kernel/power/gemm_kernel_cell.S
  15. +2 −2 kernel/power/gemm_kernel_g4.S
  16. +1 −1 kernel/power/gemm_kernel_hummer.S
  17. +2 −2 kernel/power/gemm_kernel_power3.S
  18. +2 −2 kernel/power/gemm_kernel_power6.S
  19. +2 −2 kernel/power/gemm_kernel_ppc440.S
  20. +2 −2 kernel/power/gemv_n.S
  21. +2 −2 kernel/power/gemv_n_ppc440.S
  22. +2 −2 kernel/power/gemv_t.S
  23. +2 −2 kernel/power/gemv_t_ppc440.S
  24. +2 −2 kernel/power/ger.S
  25. +1 −1 kernel/power/scal.S
  26. +1 −1 kernel/power/scal_ppc440.S
  27. +2 −2 kernel/power/sgemm_kernel_16x8_power8.S
  28. +2 −2 kernel/power/strmm_kernel_16x8_power8.S
  29. +1 −1 kernel/power/swap.S
  30. +2 −2 kernel/power/symv_L.S
  31. +2 −2 kernel/power/symv_U.S
  32. +3 −3 kernel/power/trsm_kernel_LN.S
  33. +3 −3 kernel/power/trsm_kernel_LT.S
  34. +3 −3 kernel/power/trsm_kernel_RT.S
  35. +3 −3 kernel/power/trsm_kernel_cell_LN.S
  36. +3 −3 kernel/power/trsm_kernel_cell_LT.S
  37. +3 −3 kernel/power/trsm_kernel_cell_RT.S
  38. +1 −1 kernel/power/trsm_kernel_hummer_LN.S
  39. +1 −1 kernel/power/trsm_kernel_hummer_LT.S
  40. +1 −1 kernel/power/trsm_kernel_hummer_RT.S
  41. +2 −2 kernel/power/trsm_kernel_power6_LN.S
  42. +2 −2 kernel/power/trsm_kernel_power6_LT.S
  43. +2 −2 kernel/power/trsm_kernel_power6_RT.S
  44. +2 −2 kernel/power/trsm_kernel_ppc440_LN.S
  45. +2 −2 kernel/power/trsm_kernel_ppc440_LT.S
  46. +2 −2 kernel/power/trsm_kernel_ppc440_RT.S
  47. +2 −2 kernel/power/zaxpy.S
  48. +2 −2 kernel/power/zaxpy_ppc440.S
  49. +1 −1 kernel/power/zgemm_beta.S
  50. +4 −4 kernel/power/zgemm_kernel.S
  51. +3 −3 kernel/power/zgemm_kernel_8x2_power8.S
  52. +3 −3 kernel/power/zgemm_kernel_altivec.S
  53. +3 −3 kernel/power/zgemm_kernel_altivec_cell.S
  54. +2 −2 kernel/power/zgemm_kernel_altivec_g4.S
  55. +4 −4 kernel/power/zgemm_kernel_cell.S
  56. +3 −3 kernel/power/zgemm_kernel_g4.S
  57. +1 −1 kernel/power/zgemm_kernel_hummer.S
  58. +3 −3 kernel/power/zgemm_kernel_power3.S
  59. +3 −3 kernel/power/zgemm_kernel_power6.S
  60. +2 −2 kernel/power/zgemm_kernel_power9.S
  61. +3 −3 kernel/power/zgemm_kernel_ppc440.S
  62. +2 −2 kernel/power/zgemv_n.S
  63. +2 −2 kernel/power/zgemv_n_ppc440.S
  64. +2 −2 kernel/power/zgemv_t.S
  65. +2 −2 kernel/power/zgemv_t_ppc440.S
  66. +2 −2 kernel/power/zger.S
  67. +1 −1 kernel/power/zscal.S
  68. +1 −1 kernel/power/zscal_ppc440.S
  69. +2 −2 kernel/power/zswap.S
  70. +2 −2 kernel/power/zsymv_L.S
  71. +2 −2 kernel/power/zsymv_U.S
  72. +3 −3 kernel/power/ztrmm_kernel_8x2_power8.S
  73. +4 −4 kernel/power/ztrsm_kernel_LN.S
  74. +4 −4 kernel/power/ztrsm_kernel_LT.S
  75. +4 −4 kernel/power/ztrsm_kernel_RT.S
  76. +3 −3 kernel/power/ztrsm_kernel_cell_LN.S
  77. +4 −4 kernel/power/ztrsm_kernel_cell_LT.S
  78. +3 −3 kernel/power/ztrsm_kernel_cell_RT.S
  79. +1 −1 kernel/power/ztrsm_kernel_hummer_LN.S
  80. +1 −1 kernel/power/ztrsm_kernel_hummer_LT.S
  81. +1 −1 kernel/power/ztrsm_kernel_hummer_RT.S
  82. +3 −3 kernel/power/ztrsm_kernel_power6_LN.S
  83. +3 −3 kernel/power/ztrsm_kernel_power6_LT.S
  84. +3 −3 kernel/power/ztrsm_kernel_power6_RT.S
  85. +3 −3 kernel/power/ztrsm_kernel_ppc440_LN.S
  86. +3 −3 kernel/power/ztrsm_kernel_ppc440_LT.S
  87. +3 −3 kernel/power/ztrsm_kernel_ppc440_RT.S
@@ -499,7 +499,7 @@ static inline int blas_quickdivide(blasint x, blasint y){

#if defined(ASSEMBLER) && !defined(NEEDPARAM)

#ifdef OS_LINUX
#if defined(OS_LINUX) || defined(OS_FREEBSD)
#ifndef __64BIT__
#define PROLOGUE \
.section .text;\
@@ -784,7 +784,7 @@ Lmcount$lazy_ptr:

#define HALT mfspr r0, 1023

#ifdef OS_LINUX
#if defined(OS_LINUX) || defined(OS_FREEBSD)
#if defined(PPC440) || defined(PPC440FP2)
#undef MAX_CPU_NUMBER
#define MAX_CPU_NUMBER 1
@@ -829,7 +829,7 @@ Lmcount$lazy_ptr:
#define MAP_ANONYMOUS MAP_ANON
#endif

#ifdef OS_LINUX
#if defined(OS_LINUX) || defined(OS_FREEBSD)
#ifndef __64BIT__
#define FRAMESLOT(X) (((X) * 4) + 8)
#else
@@ -39,7 +39,7 @@
#define ASSEMBLER
#include "common.h"

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define N r3
#define X r6
@@ -39,7 +39,7 @@
#define ASSEMBLER
#include "common.h"

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define N r3
#define X r6
@@ -97,7 +97,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -265,7 +265,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
stfs f2, ALPHA_I_SP
// stw r0, FZERO

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifdef __64BIT__
ld LDC, FRAMESLOT(0) + 0(FRAMEPOINTER)
#endif
@@ -286,7 +286,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endif

#ifdef TRMMKERNEL
#if defined(linux) && defined(__64BIT__)
#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
ld OFFSET, FRAMESLOT(1) + 0(FRAMEPOINTER)
#endif

@@ -98,7 +98,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -264,7 +264,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
stfs f2, ALPHA_I_SP
// stw r0, FZERO

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifdef __64BIT__
ld LDC, FRAMESLOT(0) + STACKSIZE(SP)
#endif
@@ -285,7 +285,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endif

#ifdef TRMMKERNEL
#if defined(linux) && defined(__64BIT__)
#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP)
#endif

@@ -97,7 +97,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -271,7 +271,7 @@ li r11,0
slwi LDC, LDC, BASE_SHIFT

#if defined(TRMMKERNEL)
#if defined(linux) && defined(__64BIT__)
#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP)
#endif

@@ -96,7 +96,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -269,7 +269,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
slwi LDC, LDC, BASE_SHIFT

#if defined(TRMMKERNEL)
#if defined(linux) && defined(__64BIT__)
#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP)
#endif

@@ -61,7 +61,7 @@
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -217,7 +217,7 @@ li r11,0
#endif


#if defined(linux) && defined(__64BIT__)
#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP)
#endif

@@ -62,7 +62,7 @@
stfd f31, 16(SP)
stw r0, 24(SP)

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
lwz LDC, FRAMESLOT(0) + STACKSIZE(SP)
#else
@@ -59,7 +59,7 @@
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -186,7 +186,7 @@
slwi LDC, LDC, BASE_SHIFT

#if defined(TRMMKERNEL)
#if defined(linux) && defined(__64BIT__)
#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP)
#endif

@@ -228,7 +228,7 @@

#else

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
mr PREA, r10
lwz PREB, FRAMESLOT(0) + STACKSIZE(SP)
@@ -58,7 +58,7 @@
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -58,7 +58,7 @@
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -58,7 +58,7 @@
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -59,7 +59,7 @@
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -192,7 +192,7 @@
slwi LDC, LDC, BASE_SHIFT

#if defined(TRMMKERNEL)
#if defined(linux) && defined(__64BIT__)
#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP)
#endif

@@ -226,7 +226,7 @@
li PREC, 4 * SIZE
#endif

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
mr PREA, r10
lwz PREB, FRAMESLOT(0) + STACKSIZE(SP)
@@ -59,7 +59,7 @@
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -184,7 +184,7 @@
slwi LDC, LDC, BASE_SHIFT

#if defined(TRMMKERNEL)
#if defined(linux) && defined(__64BIT__)
#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP)
#endif

@@ -46,7 +46,7 @@
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#define A r6
#define B r7
#define C r8
@@ -59,7 +59,7 @@
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -187,7 +187,7 @@
li PREC, 4 * SIZE
#else

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
mr PREA, r10
lwz PREB, FRAMESLOT(0) + STACKSIZE(SP)
@@ -59,7 +59,7 @@
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -183,7 +183,7 @@
slwi LDC, LDC, BASE_SHIFT

#if defined(TRMMKERNEL)
#if defined(linux) && defined(__64BIT__)
#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP)
#endif

@@ -59,7 +59,7 @@
#define N r4
#define K r5

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define A r6
#define B r7
@@ -183,7 +183,7 @@
slwi LDC, LDC, BASE_SHIFT

#if defined(TRMMKERNEL)
#if defined(linux) && defined(__64BIT__)
#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP)
#endif

@@ -39,7 +39,7 @@
#define ASSEMBLER
#include "common.h"

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define M r3
#define N r4
@@ -252,7 +252,7 @@
stw r27, 196(SP)
#endif

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
lwz INCY, FRAMESLOT(0) + STACKSIZE(SP)
lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP)
@@ -39,7 +39,7 @@
#define ASSEMBLER
#include "common.h"

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define M r3
#define N r4
@@ -199,7 +199,7 @@
stw r23, 180(SP)
#endif

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
lwz INCY, FRAMESLOT(0) + STACKSIZE(SP)
lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP)
@@ -39,7 +39,7 @@
#define ASSEMBLER
#include "common.h"

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define M r3
#define N r4
@@ -260,7 +260,7 @@
stw r29, 220(SP)
#endif

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
lwz INCY, FRAMESLOT(0) + STACKSIZE(SP)
lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP)
@@ -39,7 +39,7 @@
#define ASSEMBLER
#include "common.h"

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
#define M r3
#define N r4
@@ -190,7 +190,7 @@
stw r22, 192(SP)
#endif

#ifdef linux
#if defined(linux) || defined(__FreeBSD__)
#ifndef __64BIT__
lwz INCY, FRAMESLOT(0) + STACKSIZE(SP)
lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP)

0 comments on commit eebfeba

Please sign in to comment.
You can’t perform that action at this time.