Fix data segement. You may now use stuff like int foo = 1; in global context (as opposed to both int foo = 0; which is bss and const int foo = 1; which is rodata) without having the sky come

crashing down
This commit is contained in:
henryk@ploetzli.ch 2009-09-08 15:40:22 +00:00
commit 1b2c893632
4 changed files with 34 additions and 9 deletions

View file

@ -692,9 +692,8 @@ void UsbPacketReceived(BYTE *packet, int len)
}
}
void AppMain(void)
void __attribute__((noreturn)) AppMain(void)
{
memset(BigBuf,0,sizeof(BigBuf));
SpinDelay(100);
if(common_area.magic != COMMON_AREA_MAGIC || common_area.version != 1) {