Rev 673 | Rev 677 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 673 | Rev 676 | ||
|---|---|---|---|
| Line 252... | Line 252... | ||
| 252 | .argc = 0 |
252 | .argc = 0 |
| 253 | }; |
253 | }; |
| 254 | 254 | ||
| 255 | /** Data and methods for 'zone' command */ |
255 | /** Data and methods for 'zone' command */ |
| 256 | static int cmd_zone(cmd_arg_t *argv); |
256 | static int cmd_zone(cmd_arg_t *argv); |
| 257 | static char zone_buf[MAX_CMDLINE+1]; |
257 | //static char zone_buf[sizeof(__native)]; |
| 258 | static cmd_arg_t zone_argv = { |
258 | static cmd_arg_t zone_argv = { |
| 259 | .type = ARG_TYPE_INT, |
259 | .type = ARG_TYPE_INT, |
| 260 | .buffer = zone_buf, |
260 | //.buffer = zone_buf, |
| 261 | .len = sizeof(zone_buf) |
261 | .len = sizeof(__native) |
| 262 | }; |
262 | }; |
| 263 | 263 | ||
| 264 | static cmd_info_t zone_info = { |
264 | static cmd_info_t zone_info = { |
| 265 | .name = "zone", |
265 | .name = "zone", |
| 266 | .description = "Show memory zone structure.", |
266 | .description = "Show memory zone structure.", |
| Line 605... | Line 605... | ||
| 605 | 605 | ||
| 606 | return 1; |
606 | return 1; |
| 607 | } |
607 | } |
| 608 | 608 | ||
| 609 | int cmd_zones(cmd_arg_t * argv) { |
609 | int cmd_zones(cmd_arg_t * argv) { |
| 610 | printf("Zones listing not implemented\n"); |
610 | zone_print_list(); |
| 611 | return 1; |
611 | return 1; |
| 612 | } |
612 | } |
| 613 | 613 | ||
| 614 | int cmd_zone(cmd_arg_t * argv) { |
614 | int cmd_zone(cmd_arg_t * argv) { |
| 615 | printf("Zone details not implemented\n"); |
615 | zone_print_one(argv[0].intval); |
| 616 | return 1; |
616 | return 1; |
| 617 | } |
617 | } |
| 618 | 618 | ||
| 619 | /** Command for listing processors. |
619 | /** Command for listing processors. |
| 620 | * |
620 | * |