#include <boot_fn.h>
-/* Provided by linker script */
-extern char __boot_fn_start;
-extern char __boot_fn_end;
-extern char etext;
-
-void RelocatedProgMode(unsigned baud)
-{
- size_t reloc_size=&__boot_fn_end-&__boot_fn_start;
- memcpy(&__boot_fn_start,&etext,reloc_size);
- /*deb_wr_hex((long)ProgMode_ptr,8);*/
- ProgMode(baud);
-}
-
-
void boot_test()
{
/*set power on for SCI0 and SCI1 module*/
}
- if((__u8*)&etext<(__u8*)0xffb000) {
- /* If we are not in the internal RAM, copy and run us from
- * there */
- RelocatedProgMode(HIT_LOAD_BAUD);
- }
- else
- ProgMode(HIT_LOAD_BAUD);
+ ProgMode(HIT_LOAD_BAUD);
}
#endif /* BOOT_TEST */