Commit Graph

4 Commits

Author SHA1 Message Date
Károly Balogh
d5d62b7675 aros: startup code tweaks for i386, to keep libbase untouched in eax
git-svn-id: trunk@34418 -
2016-09-03 07:59:32 +00:00
Károly Balogh
fbfcda2926 AROS: apparently, the NewStackSwap() function is just a half arsed copy of MorphOS/NewPPCStackSwap(), so it doesn't accept nil as its third argument. Therefore we pass a pointer to some area we won't use anyway. this fixes crashes in the stack swapping code on hosted systems.
git-svn-id: trunk@28636 -
2014-09-09 17:47:13 +00:00
Károly Balogh
5a10472729 AROS: massively enhanced i386 startup code, including
- fixed to always update the stacksize in __stklen, so the RTL knows the correct stacksize (StackLength in system unit is correct)
- this probably also fixes stack checking or opens the way to have a working stack checking on AROS, but that was not tested
+ call PASCALMAIN via exec/NewStackSwap() and provide a larger stack when the pre-set value is higher than what the system provides
+ use operatingsystem_result to simplify return code handling

These changes bring the AROS startup's stack handling to the Amiga/m68k and MorphOS level

git-svn-id: trunk@28611 -
2014-09-07 14:05:42 +00:00
Károly Balogh
4179e8812d AROS: initial RTL, based on the work by Marcus Sackrow. this is enough to have a working native compiler. contains duplicated code from the Amiga and MorphOS RTLs, but the three Amiga variants will be merged soon, and then it will go away.
git-svn-id: trunk@28445 -
2014-08-18 16:42:02 +00:00