MCPcopy Create free account
hub / github.com/WheretIB/nullc / InitExecution

Method InitExecution

NULLC/Executor_X86.cpp:644–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644void ExecutorX86::InitExecution()
645{
646 if(!exCode.size())
647 {
648 strcpy(execError, "ERROR: no code to run");
649 return;
650 }
651 SetUnmanagableRange(NULLC::parameterHead, NULLC::reservedStack);
652
653 execError[0] = 0;
654 callContinue = 1;
655
656 NULLC::stackReallocs = 0;
657 NULLC::dataHead->lastEDI = 0;
658 NULLC::dataHead->instructionPtr = NULL;
659 NULLC::dataHead->nextElement = NULL;
660
661#ifndef __linux
662 if(NULLC::pSetThreadStackGuarantee)
663 {
664 unsigned long extraStack = 4096;
665 NULLC::pSetThreadStackGuarantee(&extraStack);
666 }
667#endif
668 memset(NULLC::stackBaseAddress, 0, sizeof(NULLC::DataStackHeader));
669}
670
671void ExecutorX86::Run(unsigned int functionID, const char *arguments)
672{

Callers

nothing calls this directly

Calls 2

SetUnmanagableRangeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected