Changes in kernel/arch/ia64/src/mm/tlb.c [c15b374:f72c2f5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/mm/tlb.c
rc15b374 rf72c2f5 475 475 void alternate_instruction_tlb_fault(uint64_t vector, istate_t *istate) 476 476 { 477 region_register_t rr;478 rid_t rid;479 477 uintptr_t va; 480 478 pte_t *t; 481 479 482 480 va = istate->cr_ifa; /* faulting address */ 483 rr.word = rr_read(VA2VRN(va));484 rid = rr.map.rid;485 481 486 482 page_table_lock(AS, true); … … 499 495 page_table_unlock(AS, true); 500 496 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 501 fault_if_from_uspace(istate, "Page fault at %p.", va); 497 fault_if_from_uspace(istate, "Page fault at %p.", 498 (void *) va); 502 499 panic_memtrap(istate, PF_ACCESS_EXEC, va, NULL); 503 500 } … … 556 553 } else { 557 554 fault_if_from_uspace(istate, 558 "IO access fault at %p.", va);555 "IO access fault at %p.", (void *) va); 559 556 } 560 557 } … … 620 617 */ 621 618 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 622 fault_if_from_uspace(istate, "Page fault at %p.", va); 619 fault_if_from_uspace(istate, "Page fault at %p.", 620 (void *) va); 623 621 panic_memtrap(istate, PF_ACCESS_UNKNOWN, va, NULL); 624 622 } … … 647 645 void data_dirty_bit_fault(uint64_t vector, istate_t *istate) 648 646 { 649 region_register_t rr;650 rid_t rid;651 647 uintptr_t va; 652 648 pte_t *t; 653 649 654 650 va = istate->cr_ifa; /* faulting address */ 655 rr.word = rr_read(VA2VRN(va));656 rid = rr.map.rid;657 651 658 652 page_table_lock(AS, true); … … 668 662 } else { 669 663 if (as_page_fault(va, PF_ACCESS_WRITE, istate) == AS_PF_FAULT) { 670 fault_if_from_uspace(istate, "Page fault at %p.", va); 664 fault_if_from_uspace(istate, "Page fault at %p.", 665 (void *) va); 671 666 panic_memtrap(istate, PF_ACCESS_WRITE, va, NULL); 672 667 } … … 683 678 void instruction_access_bit_fault(uint64_t vector, istate_t *istate) 684 679 { 685 region_register_t rr;686 rid_t rid;687 680 uintptr_t va; 688 681 pte_t *t; 689 682 690 683 va = istate->cr_ifa; /* faulting address */ 691 rr.word = rr_read(VA2VRN(va));692 rid = rr.map.rid;693 684 694 685 page_table_lock(AS, true); … … 704 695 } else { 705 696 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 706 fault_if_from_uspace(istate, "Page fault at %p.", va); 697 fault_if_from_uspace(istate, "Page fault at %p.", 698 (void *) va); 707 699 panic_memtrap(istate, PF_ACCESS_EXEC, va, NULL); 708 700 } … … 719 711 void data_access_bit_fault(uint64_t vector, istate_t *istate) 720 712 { 721 region_register_t rr;722 rid_t rid;723 713 uintptr_t va; 724 714 pte_t *t; 725 715 726 716 va = istate->cr_ifa; /* faulting address */ 727 rr.word = rr_read(VA2VRN(va));728 rid = rr.map.rid;729 717 730 718 page_table_lock(AS, true); … … 740 728 } else { 741 729 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 742 fault_if_from_uspace(istate, "Page fault at %p.", va); 730 fault_if_from_uspace(istate, "Page fault at %p.", 731 (void *) va); 743 732 panic_memtrap(istate, PF_ACCESS_UNKNOWN, va, NULL); 744 733 } … … 755 744 void data_access_rights_fault(uint64_t vector, istate_t *istate) 756 745 { 757 region_register_t rr;758 rid_t rid;759 746 uintptr_t va; 760 747 pte_t *t; 761 748 762 749 va = istate->cr_ifa; /* faulting address */ 763 rr.word = rr_read(VA2VRN(va));764 rid = rr.map.rid;765 750 766 751 /* … … 772 757 ASSERT(!t->w); 773 758 if (as_page_fault(va, PF_ACCESS_WRITE, istate) == AS_PF_FAULT) { 774 fault_if_from_uspace(istate, "Page fault at %p.", va); 759 fault_if_from_uspace(istate, "Page fault at %p.", 760 (void *) va); 775 761 panic_memtrap(istate, PF_ACCESS_WRITE, va, NULL); 776 762 } … … 786 772 void page_not_present(uint64_t vector, istate_t *istate) 787 773 { 788 region_register_t rr;789 rid_t rid;790 774 uintptr_t va; 791 775 pte_t *t; 792 776 793 777 va = istate->cr_ifa; /* faulting address */ 794 rr.word = rr_read(VA2VRN(va));795 rid = rr.map.rid;796 778 797 779 page_table_lock(AS, true); … … 812 794 page_table_unlock(AS, true); 813 795 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 814 fault_if_from_uspace(istate, "Page fault at %p.", va); 796 fault_if_from_uspace(istate, "Page fault at %p.", 797 (void *) va); 815 798 panic_memtrap(istate, PF_ACCESS_UNKNOWN, va, NULL); 816 799 }
Note:
See TracChangeset
for help on using the changeset viewer.