22 #include "pedigree/kernel/processor/StackFrame.h" 31 ProcessorState &state, uintptr_t returnAddress,
unsigned int nParams, ...)
34 uintptr_t *pStack =
reinterpret_cast<uintptr_t *
>(state.getStackPointer());
39 pStack -= nParams + 1;
40 uintptr_t *pStackLowWaterMark = pStack;
42 *pStack++ = returnAddress;
45 va_start(list, nParams);
47 for (
int i = nParams - 1; i >= 0; i--)
49 *pStack++ = va_arg(list, uintptr_t);
55 state.setStackPointer(reinterpret_cast<uintptr_t>(pStackLowWaterMark));
static void construct(ProcessorState &state, uintptr_t returnAddress, unsigned int nParams,...)
virtual uintptr_t getParameter(size_t n)