uint32_t ev_enable;
};
-void memcpy(void *dest, void *src, size_t n) {
- int i;
- //cast src and dest to char*
- char *src_char = (char *)src;
- char *dest_char = (char *)dest;
- for (i=0; i<n; i++)
- dest_char[i] = src_char[i]; //copy contents byte by byte
-}
-
void uart_writeuint32(uint32_t val) {
const char lut[] = { '0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
}
}
+void memcpy(void *dest, void *src, size_t n) {
+ int i;
+ //cast src and dest to char*
+ char *src_char = (char *)src;
+ char *dest_char = (char *)dest;
+ for (i=0; i<n; i++) {
+#if 0
+ if ((i % 1024) == 1023) {
+ puts("memcpy ");
+ uart_writeuint32(i);
+ puts("\r\n");
+ }
+#endif
+ dest_char[i] = src_char[i]; //copy contents byte by byte
+ }
+}
+
void isr(void) {
}
puts(" size ");
uart_writeuint32(size);
puts(" addr ");
- uart_writeuint32((uint32_t)addr);
+ uart_writeuint32((uint32_t)(unsigned long)addr);
puts("\r\n");
fl_read(addr, off, size);
poff += ehdr.e_phentsize;