jelinj8 / dso203

attempt to restore buildability of Wildcat's DSO203 oscilloscope firmware + bugfixes
27 stars 46 forks source link

Fix Stack Corruption with AlterBIOS #7

Closed MarSoft closed 6 years ago

MarSoft commented 6 years ago

AlterBIOS stores its data in the upper 5k of the RAM. And we originally had our stack bottom on 0x20003000 + 64K - 0x4000 = 0x2000f000, thus intersecting with AlterBIOS. As a result, installed and enabled (via patch) AlterBIOS caused the firmware to hang during boot.

AlterBIOS does fix FAT corruption which is IMO important. This PR aims to fix that issue by properly redefining memory addresses.