Changeset a175a67 in mainline
- Timestamp:
- 2006-06-06T17:10:25Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 732fd3c
- Parents:
- afc12d0
- Location:
- arch/ia64
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/interrupt.h
rafc12d0 ra175a67 121 121 static inline int istate_from_uspace(istate_t *istate) 122 122 { 123 panic("TODO: istate_from_uspace not yet implemented"); 124 return 0; 123 return (istate->cr_iip)<0xe000000000000000ULL; 125 124 } 126 125 -
arch/ia64/src/interrupt.c
rafc12d0 ra175a67 225 225 void universal_handler(__u64 vector, istate_t *istate) 226 226 { 227 fault_if_from_uspace(istate,"Interruption: %#hx (%s)\n",(__u16) vector, vector_to_string(vector)); 227 228 dump_interrupted_context(istate); 228 229 panic("Interruption: %#hx (%s)\n", (__u16) vector, vector_to_string(vector)); … … 268 269 return; 269 270 } 271 return; 270 272 panic("not implemented\n"); 271 273 /* TODO */ -
arch/ia64/src/mm/tlb.c
rafc12d0 ra175a67 46 46 #include <print.h> 47 47 #include <arch.h> 48 #include <interrupt.h> 48 49 49 50 /** Invalidate all TLB entries. */ … … 453 454 page_table_unlock(AS, true); 454 455 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 456 fault_if_from_uspace(istate,"Page fault at %P",va); 455 457 panic("%s: va=%p, rid=%d, iip=%p\n", __FUNCTION__, va, rid, istate->cr_iip); 456 458 } … … 499 501 page_table_unlock(AS, true); 500 502 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 503 fault_if_from_uspace(istate,"Page fault at %P",va); 501 504 panic("%s: va=%p, rid=%d, iip=%p\n", __FUNCTION__, va, rid, istate->cr_iip); 502 505 } … … 544 547 } else { 545 548 if (as_page_fault(va, PF_ACCESS_WRITE, istate) == AS_PF_FAULT) { 549 fault_if_from_uspace(istate,"Page fault at %P",va); 546 550 panic("%s: va=%p, rid=%d, iip=%p\n", __FUNCTION__, va, rid, istate->cr_iip); 547 551 t->d = true; … … 580 584 } else { 581 585 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 586 fault_if_from_uspace(istate,"Page fault at %P",va); 582 587 panic("%s: va=%p, rid=%d, iip=%p\n", __FUNCTION__, va, rid, istate->cr_iip); 583 588 t->a = true; … … 616 621 } else { 617 622 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 623 fault_if_from_uspace(istate,"Page fault at %P",va); 618 624 panic("%s: va=%p, rid=%d, iip=%p\n", __FUNCTION__, va, rid, istate->cr_iip); 619 625 t->a = true; … … 657 663 page_table_unlock(AS, true); 658 664 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 665 fault_if_from_uspace(istate,"Page fault at %P",va); 659 666 panic("%s: va=%p, rid=%d\n", __FUNCTION__, va, rid); 660 667 }
Note:
See TracChangeset
for help on using the changeset viewer.