minor changes, disregard
[akaros.git] / kern / src / monitor.c
index a097d0e..db4fc57 100644 (file)
@@ -39,6 +39,7 @@ static command_t commands[] = {
        { "showmapping", "Shows VA->PA mappings between two virtual addresses (parameters)", mon_showmapping},
        { "setmapperm", "Sets permissions on a VA->PA mapping", mon_setmapperm},
        { "cpuinfo", "Prints CPU diagnostics", mon_cpuinfo},
+       { "nanwan", "Meet Nanwan!!", mon_nanwan},
 };
 #define NCOMMANDS (sizeof(commands)/sizeof(commands[0]))
 
@@ -224,6 +225,38 @@ int mon_cpuinfo(int argc, char **argv, trapframe_t *tf)
        return 0;
 }
 
+int mon_nanwan(int argc, char **argv, trapframe_t *tf)
+{
+       /* Borrowed with love from http://www.geocities.com/SoHo/7373/zoo.htm
+        * (http://www.ascii-art.com/).  Slightly modified to make it 25 lines tall.
+        */
+       printk("\n");
+       printk("             .-.  .-.\n");
+       printk("             |  \\/  |\n");
+       printk("            /,   ,_  `'-.\n");
+       printk("          .-|\\   /`\\     '. \n");
+       printk("        .'  0/   | 0\\  \\_  `\".  \n");
+       printk("     .-'  _,/    '--'.'|#''---'\n");
+       printk("      `--'  |       /   \\#\n");
+       printk("            |      /     \\#\n");
+       printk("            \\     ;|\\    .\\#\n");
+       printk("            |' ' //  \\   ::\\# \n");
+       printk("            \\   /`    \\   ':\\#\n");
+       printk("             `\"`       \\..   \\#\n");
+       printk("                        \\::.  \\#\n");
+       printk("                         \\::   \\#\n");
+       printk("                          \\'  .:\\#\n");
+       printk("                           \\  :::\\#\n");
+       printk("                            \\  '::\\#\n");
+       printk("                             \\     \\#\n");
+       printk("                              \\:.   \\#\n");
+       printk("                               \\::   \\#\n");
+       printk("                                \\'   .\\#\n");
+       printk("                             jgs \\   ::\\#\n");
+       printk("                                  \\      \n");
+       return 0;
+}
+
 /***** Kernel monitor command interpreter *****/
 
 #define WHITESPACE "\t\r\n "