Fix build on FreeBSD/powerpc64.
authorPiotr Kubaj <pkubaj@anongoth.pl>
Tue, 25 Jun 2019 08:58:56 +0000 (10:58 +0200)
committerPiotr Kubaj <pkubaj@anongoth.pl>
Tue, 25 Jun 2019 08:58:56 +0000 (10:58 +0200)
Signed-off-by: Piotr Kubaj <pkubaj@anongoth.pl>
87 files changed:
common_power.h
kernel/power/axpy.S
kernel/power/axpy_ppc440.S
kernel/power/cgemm_kernel_8x4_power8.S
kernel/power/ctrmm_kernel_8x4_power8.S
kernel/power/dgemm_kernel_16x4_power8.S
kernel/power/dtrmm_kernel_16x4_power8.S
kernel/power/dtrsm_kernel_LT_16x4_power8.S
kernel/power/gemm_beta.S
kernel/power/gemm_kernel.S
kernel/power/gemm_kernel_altivec.S
kernel/power/gemm_kernel_altivec_cell.S
kernel/power/gemm_kernel_altivec_g4.S
kernel/power/gemm_kernel_cell.S
kernel/power/gemm_kernel_g4.S
kernel/power/gemm_kernel_hummer.S
kernel/power/gemm_kernel_power3.S
kernel/power/gemm_kernel_power6.S
kernel/power/gemm_kernel_ppc440.S
kernel/power/gemv_n.S
kernel/power/gemv_n_ppc440.S
kernel/power/gemv_t.S
kernel/power/gemv_t_ppc440.S
kernel/power/ger.S
kernel/power/scal.S
kernel/power/scal_ppc440.S
kernel/power/sgemm_kernel_16x8_power8.S
kernel/power/strmm_kernel_16x8_power8.S
kernel/power/swap.S
kernel/power/symv_L.S
kernel/power/symv_U.S
kernel/power/trsm_kernel_LN.S
kernel/power/trsm_kernel_LT.S
kernel/power/trsm_kernel_RT.S
kernel/power/trsm_kernel_cell_LN.S
kernel/power/trsm_kernel_cell_LT.S
kernel/power/trsm_kernel_cell_RT.S
kernel/power/trsm_kernel_hummer_LN.S
kernel/power/trsm_kernel_hummer_LT.S
kernel/power/trsm_kernel_hummer_RT.S
kernel/power/trsm_kernel_power6_LN.S
kernel/power/trsm_kernel_power6_LT.S
kernel/power/trsm_kernel_power6_RT.S
kernel/power/trsm_kernel_ppc440_LN.S
kernel/power/trsm_kernel_ppc440_LT.S
kernel/power/trsm_kernel_ppc440_RT.S
kernel/power/zaxpy.S
kernel/power/zaxpy_ppc440.S
kernel/power/zgemm_beta.S
kernel/power/zgemm_kernel.S
kernel/power/zgemm_kernel_8x2_power8.S
kernel/power/zgemm_kernel_altivec.S
kernel/power/zgemm_kernel_altivec_cell.S
kernel/power/zgemm_kernel_altivec_g4.S
kernel/power/zgemm_kernel_cell.S
kernel/power/zgemm_kernel_g4.S
kernel/power/zgemm_kernel_hummer.S
kernel/power/zgemm_kernel_power3.S
kernel/power/zgemm_kernel_power6.S
kernel/power/zgemm_kernel_power9.S
kernel/power/zgemm_kernel_ppc440.S
kernel/power/zgemv_n.S
kernel/power/zgemv_n_ppc440.S
kernel/power/zgemv_t.S
kernel/power/zgemv_t_ppc440.S
kernel/power/zger.S
kernel/power/zscal.S
kernel/power/zscal_ppc440.S
kernel/power/zswap.S
kernel/power/zsymv_L.S
kernel/power/zsymv_U.S
kernel/power/ztrmm_kernel_8x2_power8.S
kernel/power/ztrsm_kernel_LN.S
kernel/power/ztrsm_kernel_LT.S
kernel/power/ztrsm_kernel_RT.S
kernel/power/ztrsm_kernel_cell_LN.S
kernel/power/ztrsm_kernel_cell_LT.S
kernel/power/ztrsm_kernel_cell_RT.S
kernel/power/ztrsm_kernel_hummer_LN.S
kernel/power/ztrsm_kernel_hummer_LT.S
kernel/power/ztrsm_kernel_hummer_RT.S
kernel/power/ztrsm_kernel_power6_LN.S
kernel/power/ztrsm_kernel_power6_LT.S
kernel/power/ztrsm_kernel_power6_RT.S
kernel/power/ztrsm_kernel_ppc440_LN.S
kernel/power/ztrsm_kernel_ppc440_LT.S
kernel/power/ztrsm_kernel_ppc440_RT.S

index 889205c..f38b858 100644 (file)
@@ -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
index fb9789d..2387718 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define N      r3
 #define X      r6
index 81a660e..7733e46 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define N      r3
 #define X      r6
index 8dbb601..2bc9997 100644 (file)
@@ -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
 
index 26f49c6..822420d 100644 (file)
@@ -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
 
index 41958ea..651fd53 100644 (file)
@@ -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
 
index 57829ac..84c65f5 100644 (file)
@@ -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
 
index 7a4a303..8a423f1 100644 (file)
@@ -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
 
index 7acc05b..81457b6 100644 (file)
@@ -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
index e5e9ec3..37ff9c9 100644 (file)
@@ -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
        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
 
 
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        mr      PREA,  r10
        lwz     PREB,  FRAMESLOT(0) + STACKSIZE(SP)
index 6c7e783..2dae49c 100644 (file)
@@ -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
index b7445a1..0823420 100644 (file)
@@ -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
index 5481501..3a214b2 100644 (file)
@@ -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
index f3d3b83..26f9cb0 100644 (file)
@@ -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
        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
 
        li      PREC,   4 * SIZE
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        mr      PREA,  r10
        lwz     PREB,  FRAMESLOT(0) + STACKSIZE(SP)
index 259f04c..a5c4d3a 100644 (file)
@@ -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
        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
 
index 3a8e1ed..6ecbeb3 100644 (file)
@@ -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
index 4a6b5da..f88bc29 100644 (file)
@@ -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
        li      PREC,   4 * SIZE
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        mr      PREA,  r10
        lwz     PREB,  FRAMESLOT(0) + STACKSIZE(SP)
index 1a412c4..b274f76 100644 (file)
@@ -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
        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
 
index b128beb..c5ef6e4 100644 (file)
@@ -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
        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
 
index 02160bd..abc61b6 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define        N       r4
        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)
index beb2120..18d8045 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define        N       r4
        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)
index 4577530..25a4dd0 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define        N       r4
        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)
index 6e560db..7d12b07 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define        N       r4
        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)
index fd397ce..d83546b 100644 (file)
@@ -47,7 +47,7 @@
 #endif
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define        N       r4
        stw     r27,   196(SP)
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     LDA,     FRAMESLOT(0) + STACKSIZE(SP)
        lwz     BUFFER,  FRAMESLOT(1) + STACKSIZE(SP)
index 7c65d12..19fdd32 100644 (file)
@@ -43,7 +43,7 @@
 #define XX     r4
 #define PREA   r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define X r6
 #define INCX r7
index ed14883..d977b0b 100644 (file)
@@ -43,7 +43,7 @@
 #define XX     r4
 #define PRE    r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define X r6
 #define INCX r7
index c72b00c..3e6440a 100644 (file)
@@ -95,7 +95,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
@@ -273,7 +273,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        slwi    LDC, LDC, 2
 
 #if defined(TRMMKERNEL)
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + 0(FRAMEPOINTER)
 #endif
 
index f9b8a0b..78e5392 100644 (file)
@@ -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
@@ -271,7 +271,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
 
index e862b17..c9c0f86 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define N      r3
 #define X      r6
index f7d768c..a4ff703 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define N      r4
        stw     r27,   196(SP)
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     BUFFER,  FRAMESLOT(0) + STACKSIZE(SP)
 #else
index d8e0823..c3063e0 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define IS     r4
        stw     r27,   196(SP)
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     BUFFER,  FRAMESLOT(0) + STACKSIZE(SP)
 #else
index 7983c57..8319d5e 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
 
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        mr      PREA,  r10
        lwz     PREB,  FRAMESLOT(0) + STACKSIZE(SP)
index c561fd0..30f25e0 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
 
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        mr      PREA,  r10
        lwz     PREB,  FRAMESLOT(0) + STACKSIZE(SP)
index 07b8840..d39d3a6 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
 
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        mr      PREA,  r10
        lwz     PREB,  FRAMESLOT(0) + STACKSIZE(SP)
index 803530c..f656015 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
        li      PREC,  -4 * SIZE
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        mr      PREA,  r10
        lwz     PREB,  FRAMESLOT(0) + STACKSIZE(SP)
index 105e7d4..083af72 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
 
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        mr      PREA,  r10
        lwz     PREB,  FRAMESLOT(0) + STACKSIZE(SP)
index a54a261..5a5b67e 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
        li      PREC,  -4 * SIZE
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        mr      PREA,  r10
        lwz     PREB,  FRAMESLOT(0) + STACKSIZE(SP)
index 109dacb..35ffab4 100644 (file)
@@ -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
index 1ad062a..f7a09db 100644 (file)
@@ -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
index 94b3c0c..0e563e5 100644 (file)
@@ -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
index 937a676..83594c7 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
index 924f00e..54a8547 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
index 40ee5e2..b2b2761 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
index 6b73121..a708a08 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
index 28b109b..31f82de 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
index df80cd3..f500540 100644 (file)
@@ -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
 
        slwi    LDC, LDC, BASE_SHIFT
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
index ac5b249..b001f42 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define N      r3
 #define X      r6
        stfd    f24,   80(SP)
        stfd    f25,   88(SP)
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
         ld     INCY, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
index b5c604e..848a013 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define N      r3
 #define X      r6
        stfd    f24,   80(SP)
        stfd    f25,   88(SP)
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
         ld     INCY, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
index 1f4c292..57c3bed 100644 (file)
@@ -62,7 +62,7 @@
        stfd    f31,    8(SP)
        stw     r0,    16(SP)
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     LDC,    FRAMESLOT(0) + STACKSIZE(SP)
 #else
index 8ec8b67..ae8a93e 100644 (file)
@@ -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
        stfd    f2,  ALPHA_I
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 
 #ifdef TRMMKERNEL
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
 #endif
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     PREA,  FRAMESLOT(2) + STACKSIZE(SP)
        lwz     PREC,  FRAMESLOT(3) + STACKSIZE(SP)
index 5526b91..dfe2d9d 100644 (file)
@@ -132,7 +132,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
@@ -296,7 +296,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        stfd    f2,  ALPHA_I_SP
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + 0(FRAMEPOINTER)
 #endif
@@ -317,7 +317,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
 
index 2b650cd..2525a8e 100644 (file)
@@ -62,7 +62,7 @@
 #define        N       r4
 #define        K       r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define A      r6
 #define        B       r7
 #endif
 
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC,   FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     PREB,  FRAMESLOT(2) + STACKSIZE(SP)
        lwz     PREC,  FRAMESLOT(3) + STACKSIZE(SP)
index 642d1f2..47a7906 100644 (file)
@@ -62,7 +62,7 @@
 #define        N       r4
 #define        K       r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define A      r6
 #define        B       r7
 #endif
 
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC,    FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     PREB,  FRAMESLOT(2) + STACKSIZE(SP)
        lwz     PREC,  FRAMESLOT(3) + STACKSIZE(SP)
index 0f7a6f9..c305270 100644 (file)
@@ -62,7 +62,7 @@
 #define        N       r4
 #define        K       r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define A      r6
 #define        B       r7
 #endif
 
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC,  FRAMESLOT(0) + STACKSIZE(SP)
 #endif
index 8fd6b0a..3d17937 100644 (file)
@@ -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
        stfd    f2,  ALPHA_I
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 
 #ifdef TRMMKERNEL
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
        li      PREA,   16 * 12 * SIZE
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     PREA,  FRAMESLOT(2) + STACKSIZE(SP)
        lwz     PREC,  FRAMESLOT(3) + STACKSIZE(SP)
index bf6bf77..b92fb42 100644 (file)
@@ -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
        stfd    f2,  ALPHA_I
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 
 #ifdef TRMMKERNEL
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
index 991a643..5546dd2 100644 (file)
@@ -48,7 +48,7 @@
 #define        N       r4
 #define        K       r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #define A      r6
 #define        B       r7
 #define        C       r8
index 471d3b9..d14cb1c 100644 (file)
@@ -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
        stfd    f2,  ALPHA_I
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     PREA,  FRAMESLOT(2) + STACKSIZE(SP)
        lwz     PREC,  FRAMESLOT(3) + STACKSIZE(SP)
index 3c28649..9b47b9f 100644 (file)
@@ -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
        stfd    f2,  ALPHA_I
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 
 #ifdef TRMMKERNEL
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
index 813f270..d1e60da 100644 (file)
@@ -147,13 +147,13 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     std    r0, FLINK_SAVE(SP)\r
  \r
 \r
-#ifdef linux\r
+#if defined(linux) || defined(__FreeBSD__)\r
        ld      LDC, FRAMESLOT(0) + 0(FRAMEPOINTER)\r
 #endif\r
 \r
 \r
 #ifdef TRMMKERNEL\r
-#if defined(linux) && defined(__64BIT__)\r
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)\r
        ld      OFFSET,  FRAMESLOT(1) + 0(FRAMEPOINTER)\r
 #endif \r
 #endif\r
index 748b69a..ba99a21 100644 (file)
@@ -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
        stfd    f2,  ALPHA_I
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 
 #ifdef TRMMKERNEL
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
index f934399..708f131 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define        N       r4
        stw     r22,   176(SP)
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     INCY,  FRAMESLOT(0) + STACKSIZE(SP)
 #else
index 55dd2d8..bd1148b 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define        N       r4
        stw     r22,   176(SP)
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     INCY,    FRAMESLOT(0) + STACKSIZE(SP)
        lwz     BUFFER,  FRAMESLOT(1) + STACKSIZE(SP)
index 9c6f510..d82fab1 100644 (file)
@@ -47,7 +47,7 @@
 #define STACKSIZE 304
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define        N       r4
        stw     r0,    4 + FZERO
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     INCY,    FRAMESLOT(0) + STACKSIZE(SP)
        lwz     BUFFER,  FRAMESLOT(1) + STACKSIZE(SP)
index bfc039a..d7f3ee0 100644 (file)
@@ -47,7 +47,7 @@
 #define STACKSIZE 304
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define        N       r4
        stw     r0,    4 + FZERO
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     INCY,    FRAMESLOT(0) + STACKSIZE(SP)
        lwz     BUFFER,  FRAMESLOT(1) + STACKSIZE(SP)
index a9a6078..73757d4 100644 (file)
@@ -47,7 +47,7 @@
 #endif
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define        N       r4
        stw     r27,   196(SP)
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     LDA,     FRAMESLOT(0) + STACKSIZE(SP)
        lwz     BUFFER,  FRAMESLOT(1) + STACKSIZE(SP)
index 2eb7b0d..ae68ee6 100644 (file)
@@ -43,7 +43,7 @@
 #define XX     r4
 #define PREA   r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define X r6
 #define INCX r7
index d0e4c9b..55dd1b8 100644 (file)
@@ -43,7 +43,7 @@
 #define XX     r4
 #define PRE    r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define X r6
 #define INCX r7
index 8befadc..415164a 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define N      r3
 #define X      r6
        stfd    f30,  128(SP)
        stfd    f31,  136(SP)
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      INCY, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 
index b348e32..9f00df0 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define N      r4
        stw     r27,   196(SP)
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     BUFFER,  FRAMESLOT(0) + STACKSIZE(SP)
 #else
index b631cbe..fe97fde 100644 (file)
@@ -39,7 +39,7 @@
 #define ASSEMBLER
 #include "common.h"
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define M      r3
 #define IS     r4
        stw     r27,   196(SP)
 #endif
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     BUFFER,  FRAMESLOT(0) + STACKSIZE(SP)
 #else
index c141513..684cbd6 100644 (file)
@@ -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
@@ -259,7 +259,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        stfd    f2,  ALPHA_I_SP
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
@@ -280,7 +280,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
 
index 87473b4..3acd956 100644 (file)
@@ -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
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
 #endif
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     PREA,  FRAMESLOT(2) + STACKSIZE(SP)
        lwz     PREC,  FRAMESLOT(3) + STACKSIZE(SP)
index db08601..2d4f311 100644 (file)
@@ -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
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
 #endif
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     PREA,  FRAMESLOT(2) + STACKSIZE(SP)
        lwz     PREC,  FRAMESLOT(3) + STACKSIZE(SP)
index c50ab86..6053631 100644 (file)
@@ -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
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
 #endif
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     PREA,  FRAMESLOT(2) + STACKSIZE(SP)
        lwz     PREC,  FRAMESLOT(3) + STACKSIZE(SP)
index 884a3e8..4798b59 100644 (file)
@@ -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
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
index 388dfe3..654938a 100644 (file)
@@ -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
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
        li      PREA,   16 * 12 * SIZE
 #else
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
        lwz     PREA,  FRAMESLOT(2) + STACKSIZE(SP)
        lwz     PREC,  FRAMESLOT(3) + STACKSIZE(SP)
index 00b50fe..e3fe84d 100644 (file)
@@ -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
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
index bf3eafa..042f4d4 100644 (file)
@@ -48,7 +48,7 @@
 #define        N       r4
 #define        K       r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #define A      r6
 #define        B       r7
 #define        C       r8
index 865c85f..fc8a0be 100644 (file)
@@ -48,7 +48,7 @@
 #define        N       r4
 #define        K       r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #define A      r6
 #define        B       r7
 #define        C       r8
index 99868f9..17e31ff 100644 (file)
@@ -48,7 +48,7 @@
 #define        N       r4
 #define        K       r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #define A      r6
 #define        B       r7
 #define        C       r8
index 65b8077..3c40f60 100644 (file)
@@ -57,7 +57,7 @@
 #define        N       r4
 #define        K       r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define A      r6
 #define        B       r7
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
index c271706..b2a9230 100644 (file)
@@ -57,7 +57,7 @@
 #define        N       r4
 #define        K       r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define A      r6
 #define        B       r7
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
index ff0338c..cf37b5c 100644 (file)
@@ -57,7 +57,7 @@
 #define        N       r4
 #define        K       r5
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifndef __64BIT__
 #define A      r6
 #define        B       r7
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
index d335224..f0be64d 100644 (file)
@@ -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
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
index a9e7b89..d5ff1b5 100644 (file)
@@ -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
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif
 
index 43f4b07..b77dd76 100644 (file)
@@ -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
 
        stw     r0,  FZERO
 
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__)
 #ifdef __64BIT__
        ld      LDC, FRAMESLOT(0) + STACKSIZE(SP)
 #endif
 #endif
 #endif
 
-#if defined(linux) && defined(__64BIT__)
+#if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__)
        ld      OFFSET,  FRAMESLOT(1) + STACKSIZE(SP)
 #endif