diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-11-04 02:48:45 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-11-04 02:48:45 +0300 |
commit | 31f4955afb95dbe35eda20c590eb3bf8d251866d (patch) | |
tree | 97736cf1dcfe907c30d4f796cd0fc6b7f15cef80 /src/Platform | |
parent | 528e83698c1fb8be252423b4b69b0888d3318cfc (diff) |
Added GetStackPointer function to CoreN2G
Diffstat (limited to 'src/Platform')
-rw-r--r-- | src/Platform/Tasks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Platform/Tasks.cpp b/src/Platform/Tasks.cpp index d3388c0b..983cb066 100644 --- a/src/Platform/Tasks.cpp +++ b/src/Platform/Tasks.cpp @@ -158,8 +158,8 @@ void *Tasks::GetNVMBuffer(const uint32_t *stk) noexcept #endif // !defined(DEBUG) && !defined(__LPC17xx__) // Fill the free memory with a pattern so that we can check for stack usage and memory corruption - char* heapend = heapTop; - register const char * stack_ptr asm ("sp"); + char *_ecv_array heapend = heapTop; + const char *_ecv_array stack_ptr = (const char*_ecv_array)GetStackPointer(); while (heapend + 16 < stack_ptr) { *heapend++ = memPattern; |