]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - arch/h8300/generic/libs/boot/boot.c
It is 12 years after C99 standardization - switch to stdint.h and its types.
[sysless.git] / arch / h8300 / generic / libs / boot / boot.c
index 479d5b9104c9893a8b903fea3df1a6cf32d3197d..db680da315f04b4bd5ef7ec3348c0b03f9b7ff60 100644 (file)
@@ -1,4 +1,4 @@
-#include <types.h>
+#include <stdint.h>
 #include <cpu_def.h>
 #include <mcu_regs.h>
 #include <system_def.h>
@@ -25,7 +25,7 @@ void RelocatedProgMode(unsigned long where, unsigned baud)
   unsigned long reloc_offs=where-(unsigned long)&__boot_fn_start;
   size_t reloc_size=&__boot_fn_end-&__boot_fn_start;
   ProgMode_ptr=&ProgMode;
-  (__u8*)ProgMode_ptr+=reloc_offs;
+  (uint8_t*)ProgMode_ptr+=reloc_offs;
   memcpy((char*)where,&__boot_fn_start,reloc_size);
   (*ProgMode_ptr)(baud);
 }
@@ -34,7 +34,7 @@ void flash_loader(void)
 {
   SCIInit(HIT_LOAD_BAUD);
 
-  if((__u8*)&__boot_fn_start<(__u8*)0xff0000)
+  if((uint8_t*)&__boot_fn_start<(uint8_t*)0xff0000)
     RelocatedProgMode(0xffb000,HIT_LOAD_BAUD);
    else
     ProgMode(HIT_LOAD_BAUD);