Signed-off-by: Piotr Kubaj <pkubaj@anongoth.pl>tags/v0.3.7
| @@ -499,7 +499,7 @@ static inline int blas_quickdivide(blasint x, blasint y){ | |||||
| #if defined(ASSEMBLER) && !defined(NEEDPARAM) | #if defined(ASSEMBLER) && !defined(NEEDPARAM) | ||||
| #ifdef OS_LINUX | |||||
| #if defined(OS_LINUX) || defined(OS_FREEBSD) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define PROLOGUE \ | #define PROLOGUE \ | ||||
| .section .text;\ | .section .text;\ | ||||
| @@ -784,7 +784,7 @@ Lmcount$lazy_ptr: | |||||
| #define HALT mfspr r0, 1023 | #define HALT mfspr r0, 1023 | ||||
| #ifdef OS_LINUX | |||||
| #if defined(OS_LINUX) || defined(OS_FREEBSD) | |||||
| #if defined(PPC440) || defined(PPC440FP2) | #if defined(PPC440) || defined(PPC440FP2) | ||||
| #undef MAX_CPU_NUMBER | #undef MAX_CPU_NUMBER | ||||
| #define MAX_CPU_NUMBER 1 | #define MAX_CPU_NUMBER 1 | ||||
| @@ -829,7 +829,7 @@ Lmcount$lazy_ptr: | |||||
| #define MAP_ANONYMOUS MAP_ANON | #define MAP_ANONYMOUS MAP_ANON | ||||
| #endif | #endif | ||||
| #ifdef OS_LINUX | |||||
| #if defined(OS_LINUX) || defined(OS_FREEBSD) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define FRAMESLOT(X) (((X) * 4) + 8) | #define FRAMESLOT(X) (((X) * 4) + 8) | ||||
| #else | #else | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define N r3 | #define N r3 | ||||
| #define X r6 | #define X r6 | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define N r3 | #define N r3 | ||||
| #define X r6 | #define X r6 | ||||
| @@ -97,7 +97,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #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 | stfs f2, ALPHA_I_SP | ||||
| // stw r0, FZERO | // stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + 0(FRAMEPOINTER) | ld LDC, FRAMESLOT(0) + 0(FRAMEPOINTER) | ||||
| #endif | #endif | ||||
| @@ -286,7 +286,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #endif | #endif | ||||
| #ifdef TRMMKERNEL | #ifdef TRMMKERNEL | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + 0(FRAMEPOINTER) | ld OFFSET, FRAMESLOT(1) + 0(FRAMEPOINTER) | ||||
| #endif | #endif | ||||
| @@ -98,7 +98,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #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 | stfs f2, ALPHA_I_SP | ||||
| // stw r0, FZERO | // stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -285,7 +285,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #endif | #endif | ||||
| #ifdef TRMMKERNEL | #ifdef TRMMKERNEL | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -97,7 +97,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -271,7 +271,7 @@ li r11,0 | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(TRMMKERNEL) | #if defined(TRMMKERNEL) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -96,7 +96,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #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 | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(TRMMKERNEL) | #if defined(TRMMKERNEL) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -217,7 +217,7 @@ li r11,0 | |||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -62,7 +62,7 @@ | |||||
| stfd f31, 16(SP) | stfd f31, 16(SP) | ||||
| stw r0, 24(SP) | stw r0, 24(SP) | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz LDC, FRAMESLOT(0) + STACKSIZE(SP) | lwz LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #else | #else | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -186,7 +186,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(TRMMKERNEL) | #if defined(TRMMKERNEL) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -228,7 +228,7 @@ | |||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| mr PREA, r10 | mr PREA, r10 | ||||
| lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| @@ -58,7 +58,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -58,7 +58,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -58,7 +58,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -192,7 +192,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(TRMMKERNEL) | #if defined(TRMMKERNEL) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -226,7 +226,7 @@ | |||||
| li PREC, 4 * SIZE | li PREC, 4 * SIZE | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| mr PREA, r10 | mr PREA, r10 | ||||
| lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -184,7 +184,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(TRMMKERNEL) | #if defined(TRMMKERNEL) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -46,7 +46,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| #define C r8 | #define C r8 | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -187,7 +187,7 @@ | |||||
| li PREC, 4 * SIZE | li PREC, 4 * SIZE | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| mr PREA, r10 | mr PREA, r10 | ||||
| lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -183,7 +183,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(TRMMKERNEL) | #if defined(TRMMKERNEL) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -183,7 +183,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(TRMMKERNEL) | #if defined(TRMMKERNEL) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -252,7 +252,7 @@ | |||||
| stw r27, 196(SP) | stw r27, 196(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -199,7 +199,7 @@ | |||||
| stw r23, 180(SP) | stw r23, 180(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -260,7 +260,7 @@ | |||||
| stw r29, 220(SP) | stw r29, 220(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -190,7 +190,7 @@ | |||||
| stw r22, 192(SP) | stw r22, 192(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| @@ -47,7 +47,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -224,7 +224,7 @@ | |||||
| stw r27, 196(SP) | stw r27, 196(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz LDA, FRAMESLOT(0) + STACKSIZE(SP) | lwz LDA, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| @@ -43,7 +43,7 @@ | |||||
| #define XX r4 | #define XX r4 | ||||
| #define PREA r5 | #define PREA r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define X r6 | #define X r6 | ||||
| #define INCX r7 | #define INCX r7 | ||||
| @@ -43,7 +43,7 @@ | |||||
| #define XX r4 | #define XX r4 | ||||
| #define PRE r5 | #define PRE r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define X r6 | #define X r6 | ||||
| #define INCX r7 | #define INCX r7 | ||||
| @@ -95,7 +95,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -273,7 +273,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| slwi LDC, LDC, 2 | slwi LDC, LDC, 2 | ||||
| #if defined(TRMMKERNEL) | #if defined(TRMMKERNEL) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + 0(FRAMEPOINTER) | ld OFFSET, FRAMESLOT(0) + 0(FRAMEPOINTER) | ||||
| #endif | #endif | ||||
| @@ -96,7 +96,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #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 | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(TRMMKERNEL) | #if defined(TRMMKERNEL) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define N r3 | #define N r3 | ||||
| #define X r6 | #define X r6 | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -248,7 +248,7 @@ | |||||
| stw r27, 196(SP) | stw r27, 196(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz BUFFER, FRAMESLOT(0) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #else | #else | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define IS r4 | #define IS r4 | ||||
| @@ -247,7 +247,7 @@ | |||||
| stw r27, 196(SP) | stw r27, 196(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz BUFFER, FRAMESLOT(0) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #else | #else | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -180,7 +180,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -236,7 +236,7 @@ | |||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| mr PREA, r10 | mr PREA, r10 | ||||
| lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -180,7 +180,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -257,7 +257,7 @@ | |||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| mr PREA, r10 | mr PREA, r10 | ||||
| lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -180,7 +180,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -254,7 +254,7 @@ | |||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| mr PREA, r10 | mr PREA, r10 | ||||
| lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -180,7 +180,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -231,7 +231,7 @@ | |||||
| li PREC, -4 * SIZE | li PREC, -4 * SIZE | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| mr PREA, r10 | mr PREA, r10 | ||||
| lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -180,7 +180,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -257,7 +257,7 @@ | |||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| mr PREA, r10 | mr PREA, r10 | ||||
| lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -180,7 +180,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -231,7 +231,7 @@ | |||||
| li PREC, -4 * SIZE | li PREC, -4 * SIZE | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| mr PREA, r10 | mr PREA, r10 | ||||
| lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | lwz PREB, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| @@ -46,7 +46,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| #define C r8 | #define C r8 | ||||
| @@ -46,7 +46,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| #define C r8 | #define C r8 | ||||
| @@ -46,7 +46,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| #define C r8 | #define C r8 | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -179,7 +179,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -180,7 +180,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -179,7 +179,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -191,7 +191,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -176,7 +176,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -59,7 +59,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -191,7 +191,7 @@ | |||||
| slwi LDC, LDC, BASE_SHIFT | slwi LDC, LDC, BASE_SHIFT | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define N r3 | #define N r3 | ||||
| #define X r6 | #define X r6 | ||||
| @@ -123,7 +123,7 @@ | |||||
| stfd f24, 80(SP) | stfd f24, 80(SP) | ||||
| stfd f25, 88(SP) | stfd f25, 88(SP) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld INCY, FRAMESLOT(0) + STACKSIZE(SP) | ld INCY, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define N r3 | #define N r3 | ||||
| #define X r6 | #define X r6 | ||||
| @@ -112,7 +112,7 @@ | |||||
| stfd f24, 80(SP) | stfd f24, 80(SP) | ||||
| stfd f25, 88(SP) | stfd f25, 88(SP) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld INCY, FRAMESLOT(0) + STACKSIZE(SP) | ld INCY, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -62,7 +62,7 @@ | |||||
| stfd f31, 8(SP) | stfd f31, 8(SP) | ||||
| stw r0, 16(SP) | stw r0, 16(SP) | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz LDC, FRAMESLOT(0) + STACKSIZE(SP) | lwz LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #else | #else | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -169,7 +169,7 @@ | |||||
| stfd f2, ALPHA_I | stfd f2, ALPHA_I | ||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -190,7 +190,7 @@ | |||||
| #endif | #endif | ||||
| #ifdef TRMMKERNEL | #ifdef TRMMKERNEL | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -231,7 +231,7 @@ | |||||
| #endif | #endif | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | ||||
| lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | ||||
| @@ -132,7 +132,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #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 | stfd f2, ALPHA_I_SP | ||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + 0(FRAMEPOINTER) | ld LDC, FRAMESLOT(0) + 0(FRAMEPOINTER) | ||||
| #endif | #endif | ||||
| @@ -317,7 +317,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #endif | #endif | ||||
| #ifdef TRMMKERNEL | #ifdef TRMMKERNEL | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + 0(FRAMEPOINTER) | ld OFFSET, FRAMESLOT(1) + 0(FRAMEPOINTER) | ||||
| #endif | #endif | ||||
| @@ -62,7 +62,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -238,7 +238,7 @@ | |||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -264,7 +264,7 @@ | |||||
| #endif | #endif | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz PREB, FRAMESLOT(2) + STACKSIZE(SP) | lwz PREB, FRAMESLOT(2) + STACKSIZE(SP) | ||||
| lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | ||||
| @@ -62,7 +62,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -244,7 +244,7 @@ | |||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -270,7 +270,7 @@ | |||||
| #endif | #endif | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz PREB, FRAMESLOT(2) + STACKSIZE(SP) | lwz PREB, FRAMESLOT(2) + STACKSIZE(SP) | ||||
| lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | ||||
| @@ -62,7 +62,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -238,7 +238,7 @@ | |||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -175,7 +175,7 @@ | |||||
| stfd f2, ALPHA_I | stfd f2, ALPHA_I | ||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -196,7 +196,7 @@ | |||||
| #endif | #endif | ||||
| #ifdef TRMMKERNEL | #ifdef TRMMKERNEL | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -230,7 +230,7 @@ | |||||
| li PREA, 16 * 12 * SIZE | li PREA, 16 * 12 * SIZE | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | ||||
| lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -185,7 +185,7 @@ | |||||
| stfd f2, ALPHA_I | stfd f2, ALPHA_I | ||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -206,7 +206,7 @@ | |||||
| #endif | #endif | ||||
| #ifdef TRMMKERNEL | #ifdef TRMMKERNEL | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -48,7 +48,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| #define C r8 | #define C r8 | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -161,7 +161,7 @@ | |||||
| stfd f2, ALPHA_I | stfd f2, ALPHA_I | ||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -202,7 +202,7 @@ | |||||
| #endif | #endif | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | ||||
| lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -199,7 +199,7 @@ | |||||
| stfd f2, ALPHA_I | stfd f2, ALPHA_I | ||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -220,7 +220,7 @@ | |||||
| #endif | #endif | ||||
| #ifdef TRMMKERNEL | #ifdef TRMMKERNEL | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -147,13 +147,13 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| std r0, FLINK_SAVE(SP) | std r0, FLINK_SAVE(SP) | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| ld LDC, FRAMESLOT(0) + 0(FRAMEPOINTER) | ld LDC, FRAMESLOT(0) + 0(FRAMEPOINTER) | ||||
| #endif | #endif | ||||
| #ifdef TRMMKERNEL | #ifdef TRMMKERNEL | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + 0(FRAMEPOINTER) | ld OFFSET, FRAMESLOT(1) + 0(FRAMEPOINTER) | ||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -182,7 +182,7 @@ | |||||
| stfd f2, ALPHA_I | stfd f2, ALPHA_I | ||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -203,7 +203,7 @@ | |||||
| #endif | #endif | ||||
| #ifdef TRMMKERNEL | #ifdef TRMMKERNEL | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -250,7 +250,7 @@ | |||||
| stw r22, 176(SP) | stw r22, 176(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #else | #else | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -223,7 +223,7 @@ | |||||
| stw r22, 176(SP) | stw r22, 176(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| @@ -47,7 +47,7 @@ | |||||
| #define STACKSIZE 304 | #define STACKSIZE 304 | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -226,7 +226,7 @@ | |||||
| stw r0, 4 + FZERO | stw r0, 4 + FZERO | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| @@ -47,7 +47,7 @@ | |||||
| #define STACKSIZE 304 | #define STACKSIZE 304 | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -179,7 +179,7 @@ | |||||
| stw r0, 4 + FZERO | stw r0, 4 + FZERO | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | lwz INCY, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| @@ -47,7 +47,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -235,7 +235,7 @@ | |||||
| stw r27, 196(SP) | stw r27, 196(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz LDA, FRAMESLOT(0) + STACKSIZE(SP) | lwz LDA, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| @@ -43,7 +43,7 @@ | |||||
| #define XX r4 | #define XX r4 | ||||
| #define PREA r5 | #define PREA r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define X r6 | #define X r6 | ||||
| #define INCX r7 | #define INCX r7 | ||||
| @@ -43,7 +43,7 @@ | |||||
| #define XX r4 | #define XX r4 | ||||
| #define PRE r5 | #define PRE r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define X r6 | #define X r6 | ||||
| #define INCX r7 | #define INCX r7 | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define N r3 | #define N r3 | ||||
| #define X r6 | #define X r6 | ||||
| @@ -117,7 +117,7 @@ | |||||
| stfd f30, 128(SP) | stfd f30, 128(SP) | ||||
| stfd f31, 136(SP) | stfd f31, 136(SP) | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld INCY, FRAMESLOT(0) + STACKSIZE(SP) | ld INCY, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define N r4 | #define N r4 | ||||
| @@ -259,7 +259,7 @@ | |||||
| stw r27, 196(SP) | stw r27, 196(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz BUFFER, FRAMESLOT(0) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #else | #else | ||||
| @@ -39,7 +39,7 @@ | |||||
| #define ASSEMBLER | #define ASSEMBLER | ||||
| #include "common.h" | #include "common.h" | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define M r3 | #define M r3 | ||||
| #define IS r4 | #define IS r4 | ||||
| @@ -256,7 +256,7 @@ | |||||
| stw r27, 196(SP) | stw r27, 196(SP) | ||||
| #endif | #endif | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz BUFFER, FRAMESLOT(0) + STACKSIZE(SP) | lwz BUFFER, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #else | #else | ||||
| @@ -98,7 +98,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #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 | stfd f2, ALPHA_I_SP | ||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -280,7 +280,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #endif | #endif | ||||
| #ifdef TRMMKERNEL | #ifdef TRMMKERNEL | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -166,7 +166,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -186,7 +186,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -244,7 +244,7 @@ | |||||
| #endif | #endif | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | ||||
| lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -166,7 +166,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -186,7 +186,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -247,7 +247,7 @@ | |||||
| #endif | #endif | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | ||||
| lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -166,7 +166,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -186,7 +186,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -247,7 +247,7 @@ | |||||
| #endif | #endif | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | ||||
| lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -172,7 +172,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -192,7 +192,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -172,7 +172,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -192,7 +192,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -246,7 +246,7 @@ | |||||
| li PREA, 16 * 12 * SIZE | li PREA, 16 * 12 * SIZE | ||||
| #else | #else | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | lwz PREA, FRAMESLOT(2) + STACKSIZE(SP) | ||||
| lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | lwz PREC, FRAMESLOT(3) + STACKSIZE(SP) | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -172,7 +172,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -192,7 +192,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -48,7 +48,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| #define C r8 | #define C r8 | ||||
| @@ -48,7 +48,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| #define C r8 | #define C r8 | ||||
| @@ -48,7 +48,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| #define C r8 | #define C r8 | ||||
| @@ -57,7 +57,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -184,7 +184,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -204,7 +204,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -57,7 +57,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -184,7 +184,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -204,7 +204,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -57,7 +57,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -184,7 +184,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -204,7 +204,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -177,7 +177,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -197,7 +197,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -177,7 +177,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -197,7 +197,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -61,7 +61,7 @@ | |||||
| #define N r4 | #define N r4 | ||||
| #define K r5 | #define K r5 | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifndef __64BIT__ | #ifndef __64BIT__ | ||||
| #define A r6 | #define A r6 | ||||
| #define B r7 | #define B r7 | ||||
| @@ -177,7 +177,7 @@ | |||||
| stw r0, FZERO | stw r0, FZERO | ||||
| #ifdef linux | |||||
| #if defined(linux) || defined(__FreeBSD__) | |||||
| #ifdef __64BIT__ | #ifdef __64BIT__ | ||||
| ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ld LDC, FRAMESLOT(0) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||
| @@ -197,7 +197,7 @@ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if defined(linux) && defined(__64BIT__) | |||||
| #if (defined(linux) || defined(__FreeBSD__)) && defined(__64BIT__) | |||||
| ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ld OFFSET, FRAMESLOT(1) + STACKSIZE(SP) | ||||
| #endif | #endif | ||||