/[dynamips]/upstream/dynamips-0.2.6-RC1/dev_vtty.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /upstream/dynamips-0.2.6-RC1/dev_vtty.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.5/dev_vtty.c revision 1 by dpavlin, Sat Oct 6 16:01:44 2007 UTC upstream/dynamips-0.2.6-RC1/dev_vtty.c revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC
# Line 591  static void remote_control(vtty_t *vtty, Line 591  static void remote_control(vtty_t *vtty,
591        
592        /* Reboot the C7200 */        /* Reboot the C7200 */
593        case 'k':        case 'k':
594           c7200_boot_ios(VM_C7200(vm));           if (vm->type == VM_TYPE_C7200)
595                c7200_boot_ios(VM_C7200(vm));
596           break;           break;
597        
598        /* Show the device list */        /* Show the device list */
# Line 600  static void remote_control(vtty_t *vtty, Line 601  static void remote_control(vtty_t *vtty,
601           pci_dev_show_list(vm->pci_bus[0]);           pci_dev_show_list(vm->pci_bus[0]);
602           pci_dev_show_list(vm->pci_bus[1]);           pci_dev_show_list(vm->pci_bus[1]);
603           break;           break;
604    
605          /* Show info about Port Adapters or Network Modules */
606          case 'p':
607             switch(vm->type) {
608                case VM_TYPE_C3600:
609                   c3600_nm_show_all_info(VM_C3600(vm));
610                   break;
611                case VM_TYPE_C7200:
612                   c7200_pa_show_all_info(VM_C7200(vm));
613                   break;
614             }
615             break;
616        
617        /* Dump the MIPS registers */        /* Dump the MIPS registers */
618        case 'r':        case 'r':
# Line 666  static void remote_control(vtty_t *vtty, Line 679  static void remote_control(vtty_t *vtty,
679           if (cpu0) {           if (cpu0) {
680              /* IRQ triggering */              /* IRQ triggering */
681              mips64_set_irq(cpu0,2/*C7200_PA_MGMT_IRQ*/);              mips64_set_irq(cpu0,2/*C7200_PA_MGMT_IRQ*/);
682                //mips64_set_irq(cpu0,C7200_PA_MGMT_IRQ);
683           }           }
684           break;           break;
685        

Legend:
Removed from v.1  
changed lines
  Added in v.2

  ViewVC Help
Powered by ViewVC 1.1.26