projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bootcount_ext: Add Ext4 build dependency
[oweals/u-boot.git]
/
lib
/
crc32.c
diff --git
a/lib/crc32.c
b/lib/crc32.c
index 71e27df78ebb91cdfc72e05d8e8ad52d7be42d8e..e9be3bf386e7bc3c86847a73320a0747c5830b56 100644
(file)
--- a/
lib/crc32.c
+++ b/
lib/crc32.c
@@
-10,6
+10,7
@@
#ifdef USE_HOSTCC
#include <arpa/inet.h>
#ifdef USE_HOSTCC
#include <arpa/inet.h>
+#include <u-boot/crc.h>
#else
#include <common.h>
#include <efi_loader.h>
#else
#include <common.h>
#include <efi_loader.h>
@@
-65,7
+66,8
@@
static void __efi_runtime make_crc_table(void)
int n, k;
uLong poly; /* polynomial exclusive-or pattern */
/* terms of polynomial defining this crc (except x^32): */
int n, k;
uLong poly; /* polynomial exclusive-or pattern */
/* terms of polynomial defining this crc (except x^32): */
- static const Byte p[] = {0,1,2,4,5,7,8,10,11,12,16,22,23,26};
+ static Byte __efi_runtime_data p[] = {
+ 0, 1, 2, 4, 5, 7, 8, 10, 11, 12, 16, 22, 23, 26};
/* make exclusive-or pattern from polynomial (0xedb88320L) */
poly = 0L;
/* make exclusive-or pattern from polynomial (0xedb88320L) */
poly = 0L;
@@
-243,12
+245,12
@@
uint32_t crc32_wd(uint32_t crc, const unsigned char *buf, uInt len,
chunk = end - curr;
if (chunk > chunk_sz)
chunk = chunk_sz;
chunk = end - curr;
if (chunk > chunk_sz)
chunk = chunk_sz;
- crc = crc32
(crc, curr, chunk);
+ crc = crc32(crc, curr, chunk);
curr += chunk;
WATCHDOG_RESET ();
}
#else
curr += chunk;
WATCHDOG_RESET ();
}
#else
- crc = crc32
(crc, buf, len);
+ crc = crc32(crc, buf, len);
#endif
return crc;
#endif
return crc;