/*
* Copyright (c) 2009 Miodrag Vallat.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
* Wrapper routines to invoke PMON2000 functions from 64-bit code.
*
* PMON is compiled as 64 bit code, using the gcc o64 ABI (similar to the o32
* ABI, but using 64 bit registers).
*
* As a result, only up to four arguments to functions will be passed through
* registers. It's up to the caller to never invoke pmon_printf() with more
* than four arguments; other functions are not affected.
*/
.text
#define PMON_CALLFRAME_SIZ (CALLFRAME_SIZ)
/*
* Note that we need to provide a PMON_CALLFRAME_SIZ untouched area above sp,
* or we'll risk our stack being corrupted upon return.
*/