[Kernel] Removed stack default uninitialized value

Now it's 0 from default as expected to be
This commit is contained in:
Gliniak 2024-01-23 21:06:57 +01:00
parent a6d2ed0e94
commit 8b14b4bbc4
1 changed files with 0 additions and 3 deletions

View File

@ -268,9 +268,6 @@ bool XThread::AllocateStack(uint32_t size) {
stack_limit_ = address + (padding / 2);
stack_base_ = stack_limit_ + size;
// Initialize the stack with junk. 0x42 because you know
memory()->Fill(stack_alloc_base_, actual_size, 0x42);
// Setup the guard pages
heap->Protect(stack_alloc_base_, padding / 2, kMemoryProtectNoAccess);
heap->Protect(stack_base_, padding / 2, kMemoryProtectNoAccess);