Changeset dfd9186 in mainline for generic/src/console/cmd.c


Ignore:
Timestamp:
2006-01-04T18:35:07Z (19 years ago)
Author:
Sergey Bondari <bondari@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
96cacc1
Parents:
5fe5f1e
Message:

Memory zones console command implementation. todo: buddy allocator structures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/console/cmd.c

    r5fe5f1e rdfd9186  
    255255/** Data and methods for 'zone' command */
    256256static int cmd_zone(cmd_arg_t *argv);
    257 static char zone_buf[MAX_CMDLINE+1];
     257//static char zone_buf[sizeof(__native)];
    258258static cmd_arg_t zone_argv = {
    259259        .type = ARG_TYPE_INT,
    260         .buffer = zone_buf,
    261         .len = sizeof(zone_buf)
     260        //.buffer = zone_buf,
     261        .len = sizeof(__native)
    262262};
    263263
     
    608608
    609609int cmd_zones(cmd_arg_t * argv) {
    610         printf("Zones listing not implemented\n");
     610        zone_print_list();
    611611        return 1;
    612612}
    613613
    614614int cmd_zone(cmd_arg_t * argv) {
    615         printf("Zone details not implemented\n");
     615        zone_print_one(argv[0].intval);
    616616        return 1;
    617617}
Note: See TracChangeset for help on using the changeset viewer.