Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-11-04 02:48:45 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-11-04 02:48:45 +0300
commit31f4955afb95dbe35eda20c590eb3bf8d251866d (patch)
tree97736cf1dcfe907c30d4f796cd0fc6b7f15cef80 /src/Platform
parent528e83698c1fb8be252423b4b69b0888d3318cfc (diff)
Added GetStackPointer function to CoreN2G
Diffstat (limited to 'src/Platform')
-rw-r--r--src/Platform/Tasks.cpp4
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;