Changeset 96b02eb9 in mainline for kernel/arch/ia32
- 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/ia32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/asm.h
r554debd r96b02eb9 64 64 } 65 65 66 #define GEN_READ_REG(reg) NO_TRACE static inline unative_t read_ ##reg (void) \66 #define GEN_READ_REG(reg) NO_TRACE static inline sysarg_t read_ ##reg (void) \ 67 67 { \ 68 unative_t res; \68 sysarg_t res; \ 69 69 asm volatile ( \ 70 70 "movl %%" #reg ", %[res]" \ … … 74 74 } 75 75 76 #define GEN_WRITE_REG(reg) NO_TRACE static inline void write_ ##reg ( unative_t regn) \76 #define GEN_WRITE_REG(reg) NO_TRACE static inline void write_ ##reg (sysarg_t regn) \ 77 77 { \ 78 78 asm volatile ( \ … … 366 366 asm volatile ( 367 367 "invlpg %[addr]\n" 368 :: [addr] "m" (*( unative_t *) addr)368 :: [addr] "m" (*(sysarg_t *) addr) 369 369 ); 370 370 } -
kernel/arch/ia32/include/proc/thread.h
r554debd r96b02eb9 39 39 40 40 typedef struct { 41 unative_t tls;41 sysarg_t tls; 42 42 } thread_arch_t; 43 43 -
kernel/arch/ia32/include/types.h
r554debd r96b02eb9 43 43 typedef uint32_t ipl_t; 44 44 45 typedef uint32_t unative_t;45 typedef uint32_t sysarg_t; 46 46 typedef int32_t native_t; 47 47 typedef uint32_t atomic_count_t; … … 54 54 55 55 #define PRIdn PRId32 /**< Format for native_t. */ 56 #define PRIun PRIu32 /**< Format for unative_t. */57 #define PRIxn PRIx32 /**< Format for hexadecimal unative_t. */56 #define PRIun PRIu32 /**< Format for sysarg_t. */ 57 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t. */ 58 58 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 59 59 -
kernel/arch/ia32/src/ia32.c
r554debd r96b02eb9 211 211 * selector, and the descriptor->base is the correct address. 212 212 */ 213 unative_t sys_tls_set(unative_t addr)213 sysarg_t sys_tls_set(sysarg_t addr) 214 214 { 215 215 THREAD->arch.tls = addr;
Note:
See TracChangeset
for help on using the changeset viewer.