Changeset 357b5f5 in mainline for kernel/arch/amd64/include
- Timestamp:
- 2011-01-23T20:09:13Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fdb9982c
- Parents:
- cead2aa (diff), 7e36c8d (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/amd64/include
- Files:
-
- 4 edited
-
asm.h (modified) (4 diffs)
-
interrupt.h (modified) (2 diffs)
-
proc/thread.h (modified) (1 diff)
-
types.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/asm.h
rcead2aa r357b5f5 304 304 } 305 305 306 NO_TRACE static inline unative_t read_msr(uint32_t msr)306 NO_TRACE static inline sysarg_t read_msr(uint32_t msr) 307 307 { 308 308 uint32_t ax, dx; … … 343 343 asm volatile ( 344 344 "invlpg %[addr]\n" 345 :: [addr] "m" (*(( unative_t *) addr))345 :: [addr] "m" (*((sysarg_t *) addr)) 346 346 ); 347 347 } … … 398 398 } 399 399 400 #define GEN_READ_REG(reg) NO_TRACE static inline unative_t read_ ##reg (void) \400 #define GEN_READ_REG(reg) NO_TRACE static inline sysarg_t read_ ##reg (void) \ 401 401 { \ 402 unative_t res; \402 sysarg_t res; \ 403 403 asm volatile ( \ 404 404 "movq %%" #reg ", %[res]" \ … … 408 408 } 409 409 410 #define GEN_WRITE_REG(reg) NO_TRACE static inline void write_ ##reg ( unative_t regn) \410 #define GEN_WRITE_REG(reg) NO_TRACE static inline void write_ ##reg (sysarg_t regn) \ 411 411 { \ 412 412 asm volatile ( \ -
kernel/arch/amd64/include/interrupt.h
rcead2aa r357b5f5 55 55 #define IRQ_PIC_SPUR 7 56 56 #define IRQ_MOUSE 12 57 #define IRQ_ DP8390 957 #define IRQ_NE2000 9 58 58 59 59 /* This one must have four least significant bits set to ones */ … … 74 74 extern void (* enable_irqs_function)(uint16_t); 75 75 extern void (* eoi_function)(void); 76 extern const char *irqs_info; 76 77 77 78 extern void interrupt_init(void); -
kernel/arch/amd64/include/proc/thread.h
rcead2aa r357b5f5 41 41 42 42 typedef struct { 43 unative_t tls;43 sysarg_t tls; 44 44 /** User and kernel RSP for syscalls. */ 45 45 uint64_t syscall_rsp[2]; -
kernel/arch/amd64/include/types.h
rcead2aa r357b5f5 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; … … 54 54 55 55 #define PRIdn PRId64 /**< Format for native_t. */ 56 #define PRIun PRIu64 /**< Format for unative_t. */57 #define PRIxn PRIx64 /**< Format for hexadecimal unative_t. */56 #define PRIun PRIu64 /**< Format for sysarg_t. */ 57 #define PRIxn PRIx64 /**< Format for hexadecimal sysarg_t. */ 58 58 #define PRIua PRIu64 /**< Format for atomic_count_t. */ 59 59
Note:
See TracChangeset
for help on using the changeset viewer.
