Changeset b5e68c8 in mainline for kernel/arch/amd64/include/istate.h
- Timestamp:
- 2011-05-12T16:49:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36787d7
- Parents:
- e80329d6 (diff), 750636a (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/istate.h
re80329d6 rb5e68c8 37 37 38 38 #ifdef KERNEL 39 39 40 #include <typedefs.h> 40 41 #include <trace.h> 41 #else 42 43 #else /* KERNEL */ 44 42 45 #include <sys/types.h> 46 43 47 #define NO_TRACE 44 #endif 48 49 #endif /* KERNEL */ 45 50 46 51 /** This is passed to interrupt handlers */ … … 61 66 uint64_t r14; 62 67 uint64_t r15; 63 uint64_t alignment; 64 uint64_t rbp_frame; 65 uint64_t rip_frame; 66 uint64_t error_word; 68 uint64_t alignment; /* align rbp_frame on multiple of 16 */ 69 uint64_t rbp_frame; /* imitation of frame pointer linkage */ 70 uint64_t rip_frame; /* imitation of return address linkage */ 71 uint64_t error_word; /* real or fake error word */ 67 72 uint64_t rip; 68 73 uint64_t cs; 69 74 uint64_t rflags; 70 uint64_t rsp; 71 uint64_t ss; 75 uint64_t rsp; /* only if istate_t is from uspace */ 76 uint64_t ss; /* only if istate_t is from uspace */ 72 77 } istate_t; 73 78 … … 75 80 NO_TRACE static inline int istate_from_uspace(istate_t *istate) 76 81 { 77 return !(istate->rip & 0x8000000000000000);82 return !(istate->rip & UINT64_C(0x8000000000000000)); 78 83 } 79 84
Note:
See TracChangeset
for help on using the changeset viewer.