comparison packages/redboot/current/src/main.c @ 186:d60da272beeb

Merge from eCos master repository on 2001-10-05-06:43:03-BST
author jlarmour
date Fri, 05 Oct 2001 15:31:48 +0000
parents 9160a8005d76
children 678094f34118
comparison
equal deleted inserted replaced
185:298031b410a6 186:d60da272beeb
88 RedBoot_cmd("dump", 88 RedBoot_cmd("dump",
89 "Display (hex dump) a range of memory", 89 "Display (hex dump) a range of memory",
90 "-b <location> [-l <length>]", 90 "-b <location> [-l <length>]",
91 do_dump 91 do_dump
92 ); 92 );
93 RedBoot_cmd("x",
94 "Display (hex dump) a range of memory",
95 "-b <location> [-l <length>]",
96 do_x
97 );
93 RedBoot_cmd("cksum", 98 RedBoot_cmd("cksum",
94 "Compute a 32bit checksum [POSIX algorithm] for a range of memory", 99 "Compute a 32bit checksum [POSIX algorithm] for a range of memory",
95 "-b <location> -l <length>", 100 "-b <location> -l <length>",
96 do_cksum 101 do_cksum
97 ); 102 );
428 diag_dump_buf((void *)base, len); 433 diag_dump_buf((void *)base, len);
429 _base = base + len; 434 _base = base + len;
430 _len = len; 435 _len = len;
431 } 436 }
432 437
438 // Simple alias for the dump command
439 void
440 do_x(int argc, char *argv[])
441 {
442 do_dump(argc, argv);
443 }
444
433 void 445 void
434 do_cksum(int argc, char *argv[]) 446 do_cksum(int argc, char *argv[])
435 { 447 {
436 // Compute a CRC, using the POSIX 1003 definition 448 // Compute a CRC, using the POSIX 1003 definition
437 extern unsigned long 449 extern unsigned long