6502: correct crt0
authorAlan Cox <alan@linux.intel.com>
Thu, 23 Nov 2017 22:22:42 +0000 (22:22 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 23 Nov 2017 22:22:42 +0000 (22:22 +0000)
commit1c18c77f87cb32400a51ced7752607c3eea6f8f9
treeddcbaf9bbc4c3e7c34d319f78b4542f64a097184
parent0be28c68753980b5de3a30aa7069c7305c30ff41
6502: correct crt0

The older compiler when we forced fastcall makes main() fastcall. The current
compiler which we can now use without patches makes make() vararg for some
odd reason. That means we need to leave argv on the stack.

With this set the 65c816 userspace actually seems useable
Library/libs/crt0_6502.s
Library/libs/crt0nostdio_6502.s