Why do we use so much stack? #695

docs
This commit is contained in:
rusefi 2019-02-23 12:12:34 -05:00
parent c4253c00ba
commit 4bba678dce
2 changed files with 9 additions and 2 deletions

View File

@ -52,8 +52,12 @@ typedef unsigned int time_t;
#define VALUE(x) VALUE_TO_STRING(x)
#define VAR_NAME_VALUE(var) #var "=" VALUE(var)
// project-wide default thread stack size
// see also PORT_INT_REQUIRED_STACK
/**
* project-wide default thread stack size
* See also PORT_INT_REQUIRED_STACK
* See getRemainingStack()
* See getMaxUsedStack()
*/
#define UTILITY_THREAD_STACK_SIZE 400
#define EFI_ERROR_CODE 0xffffffff

View File

@ -40,6 +40,9 @@ efitime_t Overflow64Counter::update(uint32_t value) {
}
#endif
/**
* See also getRemainingStack()
*/
int getMaxUsedStack(uint8_t *ptr, int size) {
/**
* maximum used stack size total stack buffer size minus position of first modified byte