Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/istate.h

    rdc0b964 r598f90e  
    3737
    3838#ifdef KERNEL
    39 
    4039#include <typedefs.h>
    4140#include <trace.h>
    42 
    43 #else /* KERNEL */
    44 
     41#else
    4542#include <sys/types.h>
    46 
    4743#define NO_TRACE
    48 
    49 #endif /* KERNEL */
     44#endif
    5045
    5146/** This is passed to interrupt handlers */
     
    6661        uint64_t r14;
    6762        uint64_t r15;
    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 */
     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 */
    7267        uint64_t rip;
    7368        uint64_t cs;
    7469        uint64_t rflags;
    75         uint64_t rsp;         /* only if istate_t is from uspace */
    76         uint64_t ss;          /* only if istate_t is from uspace */
     70        uint64_t rsp;           /* only if istate_t is from uspace */
     71        uint64_t ss;            /* only if istate_t is from uspace */
    7772} istate_t;
    7873
     
    8075NO_TRACE static inline int istate_from_uspace(istate_t *istate)
    8176{
    82         return !(istate->rip & UINT64_C(0x8000000000000000));
     77        return !(istate->rip & 0x8000000000000000);
    8378}
    8479
Note: See TracChangeset for help on using the changeset viewer.