1/1
Re: eCos: place devtabs in RAM
by Unknown on Jan 28, 2004 |
Not available! | ||
Heiko Panther wrote:
Running eCos on or1ksim is so much fun, you notice all these things
that went unnoticed before... eCos tries to write to the device table, at least in iosys.c:cyg_io_init(). So the section .devtabs should be placed into RAM, not into ROM as it is right now in the ROM targets. Another good catch ! So far, it doesn't actually seem to affect anything since nothing in the drivers used actually depends on the results of the failed write.
It doesn't look as if the table has any compile-time-initialisation,
so it could go after .sdata maybe? The devtabs section *is* initialized at compile-time via linker magic [by concatenating the scattered invocations of the *DEVTAB_ENTRY() macros]. The devtab section has to appear *between* the data and sdata sections so that the boot code in vectors.S will copy it to RAM. -Scott |
1/1