Changeset 7bdcc45 in mainline for kernel/arch/ia64
- Timestamp:
- 2010-12-16T16:38:49Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7837101
- Parents:
- 8e58f94 (diff), eb221e5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/arch/ia64
- Files:
-
- 5 edited
-
include/bootinfo.h (modified) (1 diff)
-
include/types.h (modified) (1 diff)
-
src/ia64.c (modified) (3 diffs)
-
src/interrupt.c (modified) (1 diff)
-
src/mm/tlb.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/include/bootinfo.h
r8e58f94 r7bdcc45 62 62 unsigned int memmap_items; 63 63 64 unative_t *sapic;64 sysarg_t *sapic; 65 65 unsigned long sys_freq; 66 66 unsigned long freq_scale; -
kernel/arch/ia64/include/types.h
r8e58f94 r7bdcc45 43 43 typedef uint64_t ipl_t; 44 44 45 typedef uint64_t unative_t;45 typedef uint64_t sysarg_t; 46 46 typedef int64_t native_t; 47 47 typedef uint64_t atomic_count_t; 48 48 49 49 typedef struct { 50 unative_t fnc;51 unative_t gp;50 sysarg_t fnc; 51 sysarg_t gp; 52 52 } __attribute__((may_alias)) fncptr_t; 53 53 54 #define PRIp "lx" /**< Format for uintptr_t. */55 #define PRIs "lu" /**< Format for size_t. */54 #define INTN_C(c) INT64_C(c) 55 #define UINTN_C(c) UINT64_C(c) 56 56 57 #define PRId8 "d" /**< Format for int8_t. */ 58 #define PRId16 "d" /**< Format for int16_t. */ 59 #define PRId32 "d" /**< Format for int32_t. */ 60 #define PRId64 "ld" /**< Format for int64_t. */ 61 #define PRIdn "d" /**< Format for native_t. */ 62 63 #define PRIu8 "u" /**< Format for uint8_t. */ 64 #define PRIu16 "u" /**< Format for uint16_t. */ 65 #define PRIu32 "u" /**< Format for uint32_t. */ 66 #define PRIu64 "lu" /**< Format for uint64_t. */ 67 #define PRIun "u" /**< Format for unative_t. */ 68 69 #define PRIx8 "x" /**< Format for hexadecimal (u)int8_t. */ 70 #define PRIx16 "x" /**< Format for hexadecimal (u)int16_t. */ 71 #define PRIx32 "x" /**< Format for hexadecimal (u)uint32_t. */ 72 #define PRIx64 "lx" /**< Format for hexadecimal (u)int64_t. */ 73 #define PRIxn "x" /**< Format for hexadecimal (u)native_t. */ 57 #define PRIdn PRId64 /**< Format for native_t. */ 58 #define PRIun PRIu64 /**< Format for sysarg_t. */ 59 #define PRIxn PRIx64 /**< Format for hexadecimal sysarg_t. */ 60 #define PRIua PRIu64 /**< Format for atomic_count_t. */ 74 61 75 62 #endif -
kernel/arch/ia64/src/ia64.c
r8e58f94 r7bdcc45 104 104 static void iosapic_init(void) 105 105 { 106 uint64_t IOSAPIC = PA2KA(( unative_t)(iosapic_base)) | FW_OFFSET;106 uint64_t IOSAPIC = PA2KA((sysarg_t)(iosapic_base)) | FW_OFFSET; 107 107 int i; 108 108 … … 251 251 * We use r13 (a.k.a. tp) for this purpose. 252 252 */ 253 unative_t sys_tls_set(unative_t addr)253 sysarg_t sys_tls_set(sysarg_t addr) 254 254 { 255 255 return 0; … … 274 274 void *arch_construct_function(fncptr_t *fptr, void *addr, void *caller) 275 275 { 276 fptr->fnc = ( unative_t) addr;277 fptr->gp = (( unative_t *) caller)[1];276 fptr->fnc = (sysarg_t) addr; 277 fptr->gp = ((sysarg_t *) caller)[1]; 278 278 279 279 return (void *) fptr; -
kernel/arch/ia64/src/interrupt.c
r8e58f94 r7bdcc45 135 135 void istate_decode(istate_t *istate) 136 136 { 137 printf("ar.bsp=%p\tar.bspstore=%p\n", istate->ar_bsp, 138 istate->ar_bspstore); 139 printf("ar.rnat=%#018llx\tar.rsc=%#018llx\n", istate->ar_rnat, 140 istate->ar_rsc); 141 printf("ar.ifs=%#018llx\tar.pfs=%#018llx\n", istate->ar_ifs, 142 istate->ar_pfs); 143 printf("cr.isr=%#018llx\tcr.ipsr=%#018llx\t\n", istate->cr_isr.value, 144 istate->cr_ipsr); 145 146 printf("cr.iip=%#018llx, #%d\t(%s)\n", istate->cr_iip, istate->cr_isr.ei, 137 printf("ar.bsp=%p\tar.bspstore=%p\n", 138 (void *) istate->ar_bsp, (void *) istate->ar_bspstore); 139 printf("ar.rnat=%#0" PRIx64 "\tar.rsc=%#0" PRIx64 "\n", 140 istate->ar_rnat, istate->ar_rsc); 141 printf("ar.ifs=%#0" PRIx64 "\tar.pfs=%#0" PRIx64 "\n", 142 istate->ar_ifs, istate->ar_pfs); 143 printf("cr.isr=%#0" PRIx64 "\tcr.ipsr=%#0" PRIx64 "\n", 144 istate->cr_isr.value, istate->cr_ipsr.value); 145 146 printf("cr.iip=%#0" PRIx64 ", #%u\t(%s)\n", 147 istate->cr_iip, istate->cr_isr.ei, 147 148 symtab_fmt_name_lookup(istate->cr_iip)); 148 printf("cr.iipa=%#0 18llx\t(%s)\n", istate->cr_iipa,149 printf("cr.iipa=%#0" PRIx64 "\t(%s)\n", istate->cr_iipa, 149 150 symtab_fmt_name_lookup(istate->cr_iipa)); 150 printf("cr.ifa=%#0 18llx\t(%s)\n", istate->cr_ifa,151 printf("cr.ifa=%#0" PRIx64 "\t(%s)\n", istate->cr_ifa, 151 152 symtab_fmt_name_lookup(istate->cr_ifa)); 152 153 } -
kernel/arch/ia64/src/mm/tlb.c
r8e58f94 r7bdcc45 499 499 page_table_unlock(AS, true); 500 500 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 501 fault_if_from_uspace(istate, "Page fault at %p.", va); 501 fault_if_from_uspace(istate, "Page fault at %p.", 502 (void *) va); 502 503 panic_memtrap(istate, PF_ACCESS_EXEC, va, NULL); 503 504 } … … 556 557 } else { 557 558 fault_if_from_uspace(istate, 558 "IO access fault at %p.", va);559 "IO access fault at %p.", (void *) va); 559 560 } 560 561 } … … 620 621 */ 621 622 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 622 fault_if_from_uspace(istate, "Page fault at %p.", va); 623 fault_if_from_uspace(istate, "Page fault at %p.", 624 (void *) va); 623 625 panic_memtrap(istate, PF_ACCESS_UNKNOWN, va, NULL); 624 626 } … … 668 670 } else { 669 671 if (as_page_fault(va, PF_ACCESS_WRITE, istate) == AS_PF_FAULT) { 670 fault_if_from_uspace(istate, "Page fault at %p.", va); 672 fault_if_from_uspace(istate, "Page fault at %p.", 673 (void *) va); 671 674 panic_memtrap(istate, PF_ACCESS_WRITE, va, NULL); 672 675 } … … 704 707 } else { 705 708 if (as_page_fault(va, PF_ACCESS_EXEC, istate) == AS_PF_FAULT) { 706 fault_if_from_uspace(istate, "Page fault at %p.", va); 709 fault_if_from_uspace(istate, "Page fault at %p.", 710 (void *) va); 707 711 panic_memtrap(istate, PF_ACCESS_EXEC, va, NULL); 708 712 } … … 740 744 } else { 741 745 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 742 fault_if_from_uspace(istate, "Page fault at %p.", va); 746 fault_if_from_uspace(istate, "Page fault at %p.", 747 (void *) va); 743 748 panic_memtrap(istate, PF_ACCESS_UNKNOWN, va, NULL); 744 749 } … … 772 777 ASSERT(!t->w); 773 778 if (as_page_fault(va, PF_ACCESS_WRITE, istate) == AS_PF_FAULT) { 774 fault_if_from_uspace(istate, "Page fault at %p.", va); 779 fault_if_from_uspace(istate, "Page fault at %p.", 780 (void *) va); 775 781 panic_memtrap(istate, PF_ACCESS_WRITE, va, NULL); 776 782 } … … 812 818 page_table_unlock(AS, true); 813 819 if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) { 814 fault_if_from_uspace(istate, "Page fault at %p.", va); 820 fault_if_from_uspace(istate, "Page fault at %p.", 821 (void *) va); 815 822 panic_memtrap(istate, PF_ACCESS_UNKNOWN, va, NULL); 816 823 }
Note:
See TracChangeset
for help on using the changeset viewer.
