Changeset 3701250 in mainline
- Timestamp:
- 2006-06-08T13:20:17Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 14df080
- Parents:
- bf56fef
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/console/cmd.c
rbf56fef r3701250 478 478 char *symbol; 479 479 __native (*f)(void); 480 #ifdef ia64 481 struct { 482 __native f; 483 __native gp; 484 }fptr; 485 #endif 480 486 481 487 symaddr = get_symbol_addr(argv->buffer); … … 488 494 symbol = get_symtab_entry(symaddr); 489 495 printf("Calling f(): %.*p: %s\n", sizeof(__address) * 2, symaddr, symbol); 496 #ifdef ia64 497 fptr.f = symaddr; 498 fptr.gp = ((__native *)cmd_call2)[1]; 499 f = (__native (*)(void)) &fptr; 500 #else 490 501 f = (__native (*)(void)) symaddr; 502 #endif 491 503 printf("Result: %#zx\n", f()); 492 504 } … … 502 514 __native (*f)(__native,...); 503 515 __native arg1 = argv[1].intval; 516 #ifdef ia64 517 struct { 518 __native f; 519 __native gp; 520 }fptr; 521 #endif 504 522 505 523 symaddr = get_symbol_addr(argv->buffer); … … 511 529 } else { 512 530 symbol = get_symtab_entry(symaddr); 531 513 532 printf("Calling f(0x%zX): %.*p: %s\n", arg1, sizeof(__address) * 2, symaddr, symbol); 533 #ifdef ia64 534 fptr.f = symaddr; 535 fptr.gp = ((__native *)cmd_call2)[1]; 536 f = (__native (*)(__native,...)) &fptr; 537 #else 514 538 f = (__native (*)(__native,...)) symaddr; 539 #endif 515 540 printf("Result: %#zx\n", f(arg1)); 516 541 } … … 527 552 __native arg1 = argv[1].intval; 528 553 __native arg2 = argv[2].intval; 554 #ifdef ia64 555 struct { 556 __native f; 557 __native gp; 558 }fptr; 559 #endif 529 560 530 561 symaddr = get_symbol_addr(argv->buffer); … … 538 569 printf("Calling f(0x%zx,0x%zx): %.*p: %s\n", 539 570 arg1, arg2, sizeof(__address) * 2, symaddr, symbol); 571 #ifdef ia64 572 fptr.f = symaddr; 573 fptr.gp = ((__native *)cmd_call2)[1]; 574 f = (__native (*)(__native,__native,...)) &fptr; 575 #else 540 576 f = (__native (*)(__native,__native,...)) symaddr; 577 #endif 541 578 printf("Result: %#zx\n", f(arg1, arg2)); 542 579 } … … 554 591 __native arg2 = argv[2].intval; 555 592 __native arg3 = argv[3].intval; 593 #ifdef ia64 594 struct { 595 __native f; 596 __native gp; 597 }fptr; 598 #endif 556 599 557 600 symaddr = get_symbol_addr(argv->buffer); … … 565 608 printf("Calling f(0x%zx,0x%zx, 0x%zx): %.*p: %s\n", 566 609 arg1, arg2, arg3, sizeof(__address) * 2, symaddr, symbol); 610 #ifdef ia64 611 fptr.f = symaddr; 612 fptr.gp = ((__native *)cmd_call2)[1]; 613 f = (__native (*)(__native,__native,__native,...)) &fptr; 614 #else 567 615 f = (__native (*)(__native,__native,__native,...)) symaddr; 616 #endif 568 617 printf("Result: %#zx\n", f(arg1, arg2, arg3)); 569 618 } -
test/mm/slab2/test.c
rbf56fef r3701250 148 148 while (data) { 149 149 new = *((void **)data); 150 *((void **)data) = NULL; 150 151 slab_free(thr_cache, data); 151 152 data = new; … … 163 164 while (data) { 164 165 new = *((void **)data); 166 *((void **)data) = NULL; 165 167 slab_free(thr_cache, data); 166 168 data = new;
Note:
See TracChangeset
for help on using the changeset viewer.