]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - arch/h8300/generic/bloader/bloader.c
h8300: Yet another update of bloader
[sysless.git] / arch / h8300 / generic / bloader / bloader.c
index f0144adec77a6b841f4ef8a3f906ee94baa6ff1f..ec637c0a863b89da7ef7c7fb1715b46017e8ba5d 100644 (file)
@@ -79,20 +79,6 @@ static void deb_led_out(char val)
 
 #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*/
@@ -121,13 +107,7 @@ void boot_test()
   }
 
  
-  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 */