#define __packed __attribute__((packed))
#define barrier() asm volatile("":::"memory")
+
+/* Memory helpers */
+/* This one doesn't yet work! */
+extern void copy_blocks(void *, void *, unsigned int);
+
+extern void *memcpy32(void *to, const void *from, size_t bytes);
return d;
}
+void *memcpy32(void *d, const void *s, size_t sz)
+{
+ uint32_t *dp = d;
+ const uint32_t *sp = s;
+ sz >>= 2;
+ while(sz--)
+ *dp++ = *sp++;
+ return d;
+}
+
void *memset(void *d, int c, size_t sz)
{
unsigned char *p = d;