Changes in kernel/arch/amd64/include/istate.h [dc0b964:598f90e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/istate.h
rdc0b964 r598f90e 37 37 38 38 #ifdef KERNEL 39 40 39 #include <typedefs.h> 41 40 #include <trace.h> 42 43 #else /* KERNEL */ 44 41 #else 45 42 #include <sys/types.h> 46 47 43 #define NO_TRACE 48 49 #endif /* KERNEL */ 44 #endif 50 45 51 46 /** This is passed to interrupt handlers */ … … 66 61 uint64_t r14; 67 62 uint64_t r15; 68 uint64_t alignment; 69 uint64_t rbp_frame; 70 uint64_t rip_frame; 71 uint64_t error_word; 63 uint64_t alignment; /* align rbp_frame on multiple of 16 */ 64 uint64_t rbp_frame; /* imitation of frame pointer linkage */ 65 uint64_t rip_frame; /* imitation of return address linkage */ 66 uint64_t error_word; /* real or fake error word */ 72 67 uint64_t rip; 73 68 uint64_t cs; 74 69 uint64_t rflags; 75 uint64_t rsp; 76 uint64_t ss; 70 uint64_t rsp; /* only if istate_t is from uspace */ 71 uint64_t ss; /* only if istate_t is from uspace */ 77 72 } istate_t; 78 73 … … 80 75 NO_TRACE static inline int istate_from_uspace(istate_t *istate) 81 76 { 82 return !(istate->rip & UINT64_C(0x8000000000000000));77 return !(istate->rip & 0x8000000000000000); 83 78 } 84 79
Note:
See TracChangeset
for help on using the changeset viewer.