Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2014-08-28T09:39:19Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
4abe919
Parents:
95fe55c
Message:

Autogenerate amd64 istate_t and its offsets.

File:
1 edited

Legend:

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

    r95fe55c r4236b18  
    3838#include <trace.h>
    3939
    40 /** This is passed to interrupt handlers */
    41 typedef struct istate {
    42         uint64_t rax;
    43         uint64_t rbx;
    44         uint64_t rcx;
    45         uint64_t rdx;
    46         uint64_t rsi;
    47         uint64_t rdi;
    48         uint64_t rbp;
    49         uint64_t r8;
    50         uint64_t r9;
    51         uint64_t r10;
    52         uint64_t r11;
    53         uint64_t r12;
    54         uint64_t r13;
    55         uint64_t r14;
    56         uint64_t r15;
    57         uint64_t alignment;   /* align rbp_frame on multiple of 16 */
    58         uint64_t rbp_frame;   /* imitation of frame pointer linkage */
    59         uint64_t rip_frame;   /* imitation of return address linkage */
    60         uint64_t error_word;  /* real or fake error word */
    61         uint64_t rip;
    62         uint64_t cs;
    63         uint64_t rflags;
    64         uint64_t rsp;         /* only if istate_t is from uspace */
    65         uint64_t ss;          /* only if istate_t is from uspace */
    66 } istate_t;
     40#ifdef KERNEL
     41#include <arch/istate_struct.h>
     42#else
     43#include <libarch/istate_struct.h>
     44#endif
    6745
    6846#define RPL_USER        3
Note: See TracChangeset for help on using the changeset viewer.