projects
/
ls2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fed7eb
)
need to merge in tercel flash code
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 10 Apr 2022 18:26:04 +0000
(19:26 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 10 Apr 2022 18:26:04 +0000
(19:26 +0100)
coldboot/coldboot.c
patch
|
blob
|
history
diff --git
a/coldboot/coldboot.c
b/coldboot/coldboot.c
index bd030c419abde05224d6c49da0b51dd49cae1597..6ed7b34544a783b23391b8088731f56d5c401889 100644
(file)
--- a/
coldboot/coldboot.c
+++ b/
coldboot/coldboot.c
@@
-53,7
+53,7
@@
void memcpy(void *dest, void *src, size_t n) {
char *src_char = (char *)src;
char *dest_char = (char *)dest;
for (i=0; i<n; i++) {
-#if
0
+#if
1
if ((i % 1024) == 1023) {
puts("memcpy ");
uart_writeuint32(i);
@@
-68,6
+68,8
@@
void isr(void) {
}
+// TODO: need to use this
+// https://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-litex/litex/-/blob/master/litex/soc/software/bios/boot.c#L575
static bool fl_read(void *dst, uint32_t offset, uint32_t size)
{
uint8_t *d = dst;