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
On Fri, Oct 30, 2009 at 7:24 AM, Myles Watson mylesgw@gmail.com wrote:
I think it's time to separate the two meanings of __ROMCC__. Right now it is used for:
- Use simple functions and data types since we don't have RAM
- 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
Same patch with __PRE_RAM__
Still abuild-tested.
Thanks, Myles
Myles Watson wrote:
I think it's time to separate the two meanings of __ROMCC__.
Signed-off-by: Myles Watson mylesgw@gmail.com
Same patch with __PRE_RAM__
Still abuild-tested.
Acked-by: Peter Stuge peter@stuge.se