mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-01-01 14:33:34 +01:00
kernel: do not copy data to on-chip memory on SH3
Avoids a crash at startup, but the application needs to be smart enough to not use the data.
This commit is contained in:
parent
744d243265
commit
e66b9083b4
1 changed files with 9 additions and 3 deletions
|
@ -116,10 +116,16 @@ int start(int isappli, int optnum)
|
||||||
/* Load data sections and wipe the bss section. This has to be done
|
/* Load data sections and wipe the bss section. This has to be done
|
||||||
first for static and global variables to be initialized */
|
first for static and global variables to be initialized */
|
||||||
regcpy(&ldata, &sdata, &rdata);
|
regcpy(&ldata, &sdata, &rdata);
|
||||||
|
regclr(&rbss, &sbss);
|
||||||
|
|
||||||
|
/* Do not load data to ILRAM, XRAM or YRAM on SH3 - the areas don't
|
||||||
|
exist. If you use them, you're responsible! */
|
||||||
|
if(!isSH3())
|
||||||
|
{
|
||||||
regcpy(&lilram, &silram, &rilram);
|
regcpy(&lilram, &silram, &rilram);
|
||||||
regcpy(&lxram, &sxram, &rxram);
|
regcpy(&lxram, &sxram, &rxram);
|
||||||
regcpy(&lyram, &syram, &ryram);
|
regcpy(&lyram, &syram, &ryram);
|
||||||
regclr(&rbss, &sbss);
|
}
|
||||||
|
|
||||||
#ifdef FX9860G
|
#ifdef FX9860G
|
||||||
/* Copy permanentely-mapped code to start of user RAM (on fx-CG 50 it
|
/* Copy permanentely-mapped code to start of user RAM (on fx-CG 50 it
|
||||||
|
|
Loading…
Reference in a new issue