stk/Stack/lowstack-MIPS32.c

39 lines
1.4 KiB
C
Raw Normal View History

1998-04-10 06:59:06 -04:00
/******************************************************************************
*
* l o w s t a c k - M I P S 3 2 . c
*
1999-09-05 07:16:41 -04:00
* Copyright <EFBFBD> 1997-1999 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
1998-04-10 06:59:06 -04:00
*
*
1999-09-05 07:16:41 -04:00
* Permission to use, copy, modify, distribute,and license this
* software and its documentation for any purpose is hereby granted,
* provided that existing copyright notices are retained in all
* copies and that this notice is included verbatim in any
* distributions. No written agreement, license, or royalty fee is
* required for any of the authorized uses.
* This software is provided ``AS IS'' without express or implied
* warranty.
1998-04-10 06:59:06 -04:00
*
*
* Author: Erick Gallesio [eg@unice.fr]
* Creation date: 29-Sep-1997 15:10
1999-09-05 07:16:41 -04:00
* Last file update: 3-Sep-1999 21:06 (eg)
1998-04-10 06:59:06 -04:00
*
******************************************************************************/
/*
Doubles are 2 words aligned on even boundaries.
If the first two args are floats or doubles, they are also passed in $f12
and $f14. But varargs functions will expect them in the integer registers
and we can't tell whether the function is varargs so we pass them both ways.
*/
extern double stk_double_register1, stk_double_register2;
void stk_copy_float_registers(void)
{
/* Values which must be passed as regsister are kept in globals */
register double f0 /* asm ("$f12") */ = stk_double_register1;
register double f1 /* asm ("$f14") */ = stk_double_register2;
}