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

Changeset 4236b18 in mainline for kernel/arch/amd64/src/asm.S


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/src/asm.S

    r95fe55c r4236b18  
    2929#include <arch/pm.h>
    3030#include <arch/mm/page.h>
     31#include <arch/istate_struct.h>
    3132
    3233.text
     
    142143        ret
    143144
    144 #define ISTATE_OFFSET_RAX               0
    145 #define ISTATE_OFFSET_RBX               8
    146 #define ISTATE_OFFSET_RCX               16
    147 #define ISTATE_OFFSET_RDX               24
    148 #define ISTATE_OFFSET_RSI               32
    149 #define ISTATE_OFFSET_RDI               40
    150 #define ISTATE_OFFSET_RBP               48
    151 #define ISTATE_OFFSET_R8                56
    152 #define ISTATE_OFFSET_R9                64
    153 #define ISTATE_OFFSET_R10               72
    154 #define ISTATE_OFFSET_R11               80
    155 #define ISTATE_OFFSET_R12               88     
    156 #define ISTATE_OFFSET_R13               96
    157 #define ISTATE_OFFSET_R14               104
    158 #define ISTATE_OFFSET_R15               112
    159 #define ISTATE_OFFSET_ALIGNMENT         120
    160 #define ISTATE_OFFSET_RBP_FRAME         128
    161 #define ISTATE_OFFSET_RIP_FRAME         136
    162 #define ISTATE_OFFSET_ERROR_WORD        144
    163 #define ISTATE_OFFSET_RIP               152
    164 #define ISTATE_OFFSET_CS                160
    165 #define ISTATE_OFFSET_RFLAGS            168
    166 #define ISTATE_OFFSET_RSP               176
    167 #define ISTATE_OFFSET_SS                184
    168 
    169145/*
    170146 * Size of the istate structure without the hardware-saved part and without the
    171147 * error word.
    172148 */
    173 #define ISTATE_SOFT_SIZE        144
     149#define ISTATE_SOFT_SIZE        ISTATE_SIZE - (6 * 8)
    174150
    175151/**
Note: See TracChangeset for help on using the changeset viewer.