Changeset 96b02eb9 in mainline for kernel/arch/ia64
- Timestamp:
- 2010-12-14T12:52:38Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b10dab
- Parents:
- 554debd
- Location:
- kernel/arch/ia64
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/include/bootinfo.h
r554debd r96b02eb9 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
r554debd r96b02eb9 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 … … 56 56 57 57 #define PRIdn PRId64 /**< Format for native_t. */ 58 #define PRIun PRIu64 /**< Format for unative_t. */59 #define PRIxn PRIx64 /**< Format for hexadecimal unative_t. */58 #define PRIun PRIu64 /**< Format for sysarg_t. */ 59 #define PRIxn PRIx64 /**< Format for hexadecimal sysarg_t. */ 60 60 #define PRIua PRIu64 /**< Format for atomic_count_t. */ 61 61 -
kernel/arch/ia64/src/ia64.c
r554debd r96b02eb9 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;
Note:
See TracChangeset
for help on using the changeset viewer.