| 642 | } |
| 643 | |
| 644 | void 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 | |
| 671 | void ExecutorX86::Run(unsigned int functionID, const char *arguments) |
| 672 | { |
nothing calls this directly
no test coverage detected