arch: arm64: Fix do_stackcheck()

Summary:
- Since the stack coloration is done for every 32bits
  this function should be done in the same way.

Impact:
- None

Testing:
- Tested with qemu-a53:nsh

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2022-07-15 13:10:55 +09:00 committed by Xiang Xiao
parent d96c87f666
commit 3682bcd4b3
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ static size_t do_stackcheck(void *stackbase, size_t nbytes)
{
uintptr_t start;
uintptr_t end;
uint64_t *ptr;
uint32_t *ptr;
size_t mark;
if (nbytes == 0)
@ -96,7 +96,7 @@ static size_t do_stackcheck(void *stackbase, size_t nbytes)
* that does not have the magic value is the high water mark.
*/
for (ptr = (uint64_t *)start, mark = (nbytes >> 2);
for (ptr = (uint32_t *)start, mark = (nbytes >> 2);
*ptr == STACK_COLOR && mark > 0;
ptr++, mark--);