Changeset 442d0ae in mainline for generic/include/console/cmd.h


Ignore:
Timestamp:
2005-12-11T00:05:13Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7910cff
Parents:
a276c56
Message:

kconsole cleanup.
Separate commands from the engine.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • generic/include/console/cmd.h

    ra276c56 r442d0ae  
    2727 */
    2828
    29 #include <console/kconsole.h>
    30 #include <mm/tlb.h>
    31 #include <arch/mm/tlb.h>
     29#ifndef __CMD_H__
     30#define __CMD_H__
    3231
    33 static int cmd_ptlb(cmd_arg_t *argv);
     32#include <typedefs.h>
    3433
    35 cmd_info_t desc_ptlb = {
    36         .name = "ptlb",
    37         .description = "Print TLB contents.",
    38         .help = NULL,
    39         .func = cmd_ptlb,
    40         .argc = 0,
    41         .argv = NULL
    42 };
     34extern void cmd_initialize(cmd_info_t *cmd);
     35extern void cmd_init(void);
    4336
    44 /** Command for printing TLB contents.
    45  *
    46  * @param argv Not used.
    47  *
    48  * @return Always returns 1.
    49  */
    50 int cmd_ptlb(cmd_arg_t *argv)
    51 {
    52         tlb_print();
    53         return 1;
    54 }
     37#endif
Note: See TracChangeset for help on using the changeset viewer.