
20 Jun
2003
20 Jun
'03
3:45 a.m.
The current FADS code does not seem to restore the environment properly, and i can't figure out what it SHOULD do.
Right now, relocate_code only relocates up to the end of text (_init_end), and since CFG_MONITOR_BASE + CONFIG_MONITOR_LEN is after CFG_ENV_ADDR, ENV_IS_EMBEDDED is set.
Since ENV_IS_EMBEDDED is set, env_reloca_spec in flash.c does NOT memcpy(env_addr,CFG_ENV_ADDR,CFG_ENV_SIZE).
There are several refereces to environment[] in start.S that are ifdefed out if CONFIG_FADS or CONFIG_ICU862, which don't look right.
My fix is to remove those ifdefs, and make sure that ENV_IS_EMBEDDED is NOT set by reducing CFG_MONITOR_LEN to not include the environment.
What is the correct behavior?
TIA
--
Nye Liu
nliu@mrv.com
(818) 772-6235x248
"Who would be stupid enough to quote a fictitious character?"
-- Don Quixote