Changeset c992538a in mainline
- Timestamp:
- 2010-06-08T20:12:00Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2d3ddad
- Parents:
- bdfd3cdd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
rbdfd3cdd rc992538a 658 658 printf("Duplicate symbol, be more specific.\n"); 659 659 } else if (rc == EOK) { 660 ipl_t ipl; 661 662 ipl = interrupts_disable(); 660 663 fnc = (unative_t (*)(void)) arch_construct_function(&fptr, 661 664 (void *) symaddr, (void *) cmd_call0); 662 665 printf("Calling %s() (%p)\n", symbol, symaddr); 663 666 printf("Result: %#" PRIxn "\n", fnc()); 667 interrupts_restore(ipl); 664 668 } else { 665 669 printf("No symbol information available.\n"); … … 719 723 printf("Duplicate symbol, be more specific.\n"); 720 724 } else if (rc == EOK) { 725 ipl_t ipl; 726 727 ipl = interrupts_disable(); 721 728 fnc = (unative_t (*)(unative_t, ...)) arch_construct_function(&fptr, (void *) symaddr, (void *) cmd_call1); 722 729 printf("Calling f(%#" PRIxn "): %p: %s\n", arg1, symaddr, symbol); 723 730 printf("Result: %#" PRIxn "\n", fnc(arg1)); 731 interrupts_restore(ipl); 724 732 } else { 725 733 printf("No symbol information available.\n"); … … 749 757 printf("Duplicate symbol, be more specific.\n"); 750 758 } else if (rc == EOK) { 759 ipl_t ipl; 760 761 ipl = interrupts_disable(); 751 762 fnc = (unative_t (*)(unative_t, unative_t, ...)) arch_construct_function(&fptr, (void *) symaddr, (void *) cmd_call2); 752 763 printf("Calling f(%#" PRIxn ", %#" PRIxn "): %p: %s\n", 753 764 arg1, arg2, symaddr, symbol); 754 765 printf("Result: %#" PRIxn "\n", fnc(arg1, arg2)); 766 interrupts_restore(ipl); 755 767 } else { 756 768 printf("No symbol information available.\n"); … … 780 792 printf("Duplicate symbol, be more specific.\n"); 781 793 } else if (rc == EOK) { 794 ipl_t ipl; 795 796 ipl = interrupts_disable(); 782 797 fnc = (unative_t (*)(unative_t, unative_t, unative_t, ...)) arch_construct_function(&fptr, (void *) symaddr, (void *) cmd_call3); 783 798 printf("Calling f(%#" PRIxn ",%#" PRIxn ", %#" PRIxn "): %p: %s\n", 784 799 arg1, arg2, arg3, symaddr, symbol); 785 800 printf("Result: %#" PRIxn "\n", fnc(arg1, arg2, arg3)); 801 interrupts_restore(ipl); 786 802 } else { 787 803 printf("No symbol information available.\n");
Note:
See TracChangeset
for help on using the changeset viewer.