Changeset 38428aa3 in mainline
- Timestamp:
- 2009-08-27T12:23:46Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ff211d2
- Parents:
- c4d11c5
- Location:
- kernel/arch/ia64
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/include/faddr.h
rc4d11c5 r38428aa3 27 27 */ 28 28 29 /** @addtogroup ia64 29 /** @addtogroup ia64 30 30 * @{ 31 31 */ … … 38 38 #include <arch/types.h> 39 39 40 /** 40 /** 41 41 * 42 42 * Calculate absolute address of function 43 43 * referenced by fptr pointer. 44 44 * 45 * @param f Function pointer.45 * @param fptr Function pointer. 46 46 * 47 47 */ 48 #define FADDR(f ) (*((uintptr_t *)(f)));48 #define FADDR(fptr) (((fncptr_t *) (fptr))->fnc) 49 49 50 50 #endif -
kernel/arch/ia64/include/types.h
rc4d11c5 r38428aa3 67 67 unative_t fnc; 68 68 unative_t gp; 69 } fncptr_t;69 } __attribute__((may_alias)) fncptr_t; 70 70 71 71 #define PRIp "lx" /**< Format for uintptr_t. */ -
kernel/arch/ia64/src/cpu/cpu.c
rc4d11c5 r38428aa3 54 54 char vendor[2 * sizeof(uint64_t) + 1]; 55 55 56 *((uint64_t *) &vendor[0 * sizeof(uint64_t)]) = CPU->arch.cpuid0;57 *((uint64_t *) &vendor[1 * sizeof(uint64_t)]) = CPU->arch.cpuid1;56 memcpy(vendor, &CPU->arch.cpuid0, 8); 57 memcpy(vendor + 8, &CPU->arch.cpuid1, 8); 58 58 vendor[sizeof(vendor) - 1] = 0; 59 59 60 switch (m->arch.cpuid3.family) {60 switch (m->arch.cpuid3.family) { 61 61 case FAMILY_ITANIUM: 62 62 family_str = "Itanium";
Note:
See TracChangeset
for help on using the changeset viewer.