URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [orpmon/] [cmds/] [memory.c] - Diff between revs 820 and 828
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 820 |
Rev 828 |
Line 154... |
Line 154... |
switch (argc) {
|
switch (argc) {
|
case 3: init_crc = strtoul (argv[2], 0, 0);
|
case 3: init_crc = strtoul (argv[2], 0, 0);
|
case 2: len = strtoul (argv[1], 0, 0);
|
case 2: len = strtoul (argv[1], 0, 0);
|
case 1: addr = strtoul (argv[0], 0, 0);
|
case 1: addr = strtoul (argv[0], 0, 0);
|
case 0:
|
case 0:
|
printf ("CRC [%08x-%08x] = %08x\n", addr, addr + len - 1, crc32 (init_crc, addr, len));
|
printf ("CRC [%08lx-%08lx] = %08lx\n", addr, addr + len - 1, crc32 (init_crc, (unsigned char *)addr, len));
|
return 0;
|
return 0;
|
}
|
}
|
return -1;
|
return -1;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.