20 #include "pedigree/kernel/processor/StackFrame.h" 21 #include "pedigree/kernel/Log.h" 46 WARNING(
"PPC32StackFrame: More than 8 parameters not implemented yet.");
54 void PPC32StackFrame::construct(
55 ProcessorState &state, uintptr_t returnAddress,
unsigned int nParams, ...)
57 state.m_Lr = returnAddress;
60 va_start(list, nParams);
62 for (
unsigned int i = 0; i < nParams; i++)
64 uintptr_t arg = va_arg(list, uintptr_t);
65 NOTICE(
"Setting " <<
Hex << i <<
", " << arg);
87 ERROR(
"StackFrame: Too many parameters");
virtual uintptr_t getParameter(size_t n)
const ProcessorState & m_State