Changes in kernel/generic/src/console/cmd.c [96b02eb9:0b0f4bb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
r96b02eb9 r0b0f4bb 601 601 602 602 /* This doesn't have to be very accurate */ 603 sysarg_t sec = uptime->seconds1;603 unative_t sec = uptime->seconds1; 604 604 605 605 printf("Up %" PRIun " days, %" PRIun " hours, %" PRIun " minutes, %" PRIun " seconds\n", … … 656 656 uintptr_t symaddr; 657 657 char *symbol; 658 sysarg_t (*fnc)(void);658 unative_t (*fnc)(void); 659 659 fncptr_t fptr; 660 660 int rc; … … 672 672 673 673 ipl = interrupts_disable(); 674 fnc = ( sysarg_t (*)(void)) arch_construct_function(&fptr,674 fnc = (unative_t (*)(void)) arch_construct_function(&fptr, 675 675 (void *) symaddr, (void *) cmd_call0); 676 676 printf("Calling %s() (%p)\n", symbol, (void *) symaddr); … … 720 720 uintptr_t symaddr; 721 721 char *symbol; 722 sysarg_t (*fnc)(sysarg_t, ...);723 sysarg_t arg1 = argv[1].intval;722 unative_t (*fnc)(unative_t, ...); 723 unative_t arg1 = argv[1].intval; 724 724 fncptr_t fptr; 725 725 int rc; … … 737 737 738 738 ipl = interrupts_disable(); 739 fnc = ( sysarg_t (*)(sysarg_t, ...))739 fnc = (unative_t (*)(unative_t, ...)) 740 740 arch_construct_function(&fptr, (void *) symaddr, 741 741 (void *) cmd_call1); … … 756 756 uintptr_t symaddr; 757 757 char *symbol; 758 sysarg_t (*fnc)(sysarg_t, sysarg_t, ...);759 sysarg_t arg1 = argv[1].intval;760 sysarg_t arg2 = argv[2].intval;758 unative_t (*fnc)(unative_t, unative_t, ...); 759 unative_t arg1 = argv[1].intval; 760 unative_t arg2 = argv[2].intval; 761 761 fncptr_t fptr; 762 762 int rc; … … 774 774 775 775 ipl = interrupts_disable(); 776 fnc = ( sysarg_t (*)(sysarg_t, sysarg_t, ...))776 fnc = (unative_t (*)(unative_t, unative_t, ...)) 777 777 arch_construct_function(&fptr, (void *) symaddr, 778 778 (void *) cmd_call2); … … 792 792 uintptr_t symaddr; 793 793 char *symbol; 794 sysarg_t (*fnc)(sysarg_t, sysarg_t, sysarg_t, ...);795 sysarg_t arg1 = argv[1].intval;796 sysarg_t arg2 = argv[2].intval;797 sysarg_t arg3 = argv[3].intval;794 unative_t (*fnc)(unative_t, unative_t, unative_t, ...); 795 unative_t arg1 = argv[1].intval; 796 unative_t arg2 = argv[2].intval; 797 unative_t arg3 = argv[3].intval; 798 798 fncptr_t fptr; 799 799 int rc; … … 811 811 812 812 ipl = interrupts_disable(); 813 fnc = ( sysarg_t (*)(sysarg_t, sysarg_t, sysarg_t, ...))813 fnc = (unative_t (*)(unative_t, unative_t, unative_t, ...)) 814 814 arch_construct_function(&fptr, (void *) symaddr, 815 815 (void *) cmd_call3);
Note:
See TracChangeset
for help on using the changeset viewer.