I think it's time to separate the two meanings of __ROMCC__. Right now it is used for: 1. Use simple functions and data types since we don't have RAM 2. Don't use prototypes, romcc doesn't support them.
Right now the patch creates __PRE_RAMINIT__
The name is not the most important part of the patch, and can easily be changed.
Here are some of the suggestions so far: __PRE_RAM__ __NO_RAM_YET__ __DURING_RAMINIT__ __USE_NO_RAM__
Unless it was obvious to me which meaning was the correct one for a file, I added both for now.
Abuild tested.
Signed-off-by: Myles Watson mylesgw@gmail.com
Thanks, Myles