mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-13 09:07:38 +00:00
declaring _sbss as an array prevents warnings when zeroing it
This commit is contained in:
parent
bc200ad489
commit
19277b3d2e
@ -175,7 +175,7 @@ static pascal void PatchedExitToShell()
|
||||
}
|
||||
|
||||
// section boundaries
|
||||
extern uint8_t _stext, _etext, _sdata, _edata, _sbss, _ebss;
|
||||
extern uint8_t _stext, _etext, _sdata, _edata, _sbss[], _ebss;
|
||||
|
||||
void Retro68InitMultisegApp()
|
||||
{
|
||||
@ -196,11 +196,11 @@ void Retro68InitMultisegApp()
|
||||
// Zero-initialize bss
|
||||
for(uint32_t *p = (uint32_t*) &_sbss;
|
||||
p < (uint32_t*) &_ebss; ++p)
|
||||
*p = 0;
|
||||
*p = 0;
|
||||
|
||||
// Set up patched LoadSeg
|
||||
|
||||
// NOTE: OriginalLoadSeg is the first global variable we can use
|
||||
|
||||
// NOTE: OriginalLoadSeg is the first global variable we can use
|
||||
OriginalLoadSeg = (void(*)(short)) GetToolTrapAddress(_LoadSeg);
|
||||
OriginalUnloadSeg = (void(*)(void*)) GetToolTrapAddress(_UnLoadSeg);
|
||||
OriginalExitToShell = (void(*)()) GetToolTrapAddress(_ExitToShell);
|
||||
|
Loading…
Reference in New Issue
Block a user