Changeset 1f7cb3a in mainline for kernel/arch/amd64/src/asm_utils.S


Ignore:
Timestamp:
2009-02-14T20:14:38Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
74bcf5e
Parents:
6c1f763
Message:

Get rid of CONFIG_DEBUG_ALLREGS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/asm_utils.S

    r6c1f763 r1f7cb3a  
    2727#
    2828
    29 #define IREGISTER_SPACE 120
    30 
    31 #define IOFFSET_RAX 0x0
    32 #define IOFFSET_RBX 0x8
    33 #define IOFFSET_RCX 0x10
    34 #define IOFFSET_RDX 0x18
    35 #define IOFFSET_RSI 0x20
    36 #define IOFFSET_RDI 0x28
    37 #define IOFFSET_R8 0x30
    38 #define IOFFSET_R9 0x38
    39 #define IOFFSET_R10 0x40
    40 #define IOFFSET_R11 0x48
    41 #define IOFFSET_R12 0x50
    42 #define IOFFSET_R13 0x58
    43 #define IOFFSET_R14 0x60
    44 #define IOFFSET_R15 0x68
    45 #define IOFFSET_RBP 0x70
     29#define IREGISTER_SPACE 72
     30
     31#define IOFFSET_RAX     0x0
     32#define IOFFSET_RCX     0x8
     33#define IOFFSET_RDX     0x10
     34#define IOFFSET_RSI     0x18
     35#define IOFFSET_RDI     0x20
     36#define IOFFSET_R8      0x28
     37#define IOFFSET_R9      0x30
     38#define IOFFSET_R10     0x38
     39#define IOFFSET_R11     0x40
    4640
    4741#  Mask for interrupts 0 - 31 (bits 0 - 31) where 0 means that int has no error word
     
    174168        ret             
    175169
    176 # Push all general purpose registers on stack except %rbp, %rsp
     170# Push all volatile general purpose registers on stack
    177171.macro save_all_gpr
    178172        movq %rax, IOFFSET_RAX(%rsp)
     
    185179        movq %r10, IOFFSET_R10(%rsp)
    186180        movq %r11, IOFFSET_R11(%rsp)
    187 #ifdef CONFIG_DEBUG_ALLREGS     
    188         movq %rbx, IOFFSET_RBX(%rsp)
    189         movq %rbp, IOFFSET_RBP(%rsp)
    190         movq %r12, IOFFSET_R12(%rsp)
    191         movq %r13, IOFFSET_R13(%rsp)
    192         movq %r14, IOFFSET_R14(%rsp)
    193         movq %r15, IOFFSET_R15(%rsp)
    194 #endif
    195181.endm
    196182
     
    205191        movq IOFFSET_R10(%rsp), %r10
    206192        movq IOFFSET_R11(%rsp), %r11
    207 #ifdef CONFIG_DEBUG_ALLREGS     
    208         movq IOFFSET_RBX(%rsp), %rbx
    209         movq IOFFSET_RBP(%rsp), %rbp
    210         movq IOFFSET_R12(%rsp), %r12
    211         movq IOFFSET_R13(%rsp), %r13
    212         movq IOFFSET_R14(%rsp), %r14
    213         movq IOFFSET_R15(%rsp), %r15
    214 #endif
    215193.endm
    216194
    217 #ifdef CONFIG_DEBUG_ALLREGS
    218 # define INTERRUPT_ALIGN 256
    219 #else
    220 # define INTERRUPT_ALIGN 128
    221 #endif
     195#define INTERRUPT_ALIGN 128
    222196       
    223197## Declare interrupt handlers
Note: See TracChangeset for help on using the changeset viewer.