pweingar / FoenixMCP

A portable kernel for the Foenix series of computers.
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Fix memory corruption in test #25

Closed vinz6751 closed 2 years ago

vinz6751 commented 2 years ago

The code clearing the BSS segment in the startup code was disabled. I think some variables where therefore not having the expected value upon startup. 1 Reinstated the BSS clearing code. 2 Improved declaration according to PJW's findings. 3 Updated the type for CLI command handlers to be a function returning short rather than int since it's really what the existing handlers do. This removes some warnings about incompatible pointer type.