Changeset 3b0f1b9a in mainline for kernel/arch/amd64/src/context.S


Ignore:
Timestamp:
2016-04-12T05:57:00Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0f792c28, d84398a7
Parents:
8844e70
Message:

amd64: use asmtool.h macros for defining symbols

File:
1 edited

Legend:

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

    r8844e70 r3b0f1b9a  
    2727#
    2828
     29#include <abi/asmtool.h>
     30#include <arch/context_struct.h>
     31
    2932.text
    30 
    31 .global context_save_arch
    32 .global context_restore_arch
    33 
    34 #include <arch/context_struct.h>
    3533
    3634## Save current CPU context
     
    3937# pointed by the 1st argument. Returns 1 in EAX.
    4038#
    41 context_save_arch:
     39FUNCTION_BEGIN(context_save_arch)
    4240        movq (%rsp), %rdx     # the caller's return %eip
    4341       
     
    5654        incl %eax
    5755        ret
     56FUNCTION_END(context_save_arch)
    5857
    5958
     
    6362# pointed by the 1st argument. Returns 0 in EAX.
    6463#
    65 context_restore_arch:
     64FUNCTION_BEGIN(context_restore_arch)
    6665        movq CONTEXT_OFFSET_R15(%rdi), %r15
    6766        movq CONTEXT_OFFSET_R14(%rdi), %r14
     
    7978        xorl %eax, %eax       # context_restore returns 0
    8079        ret
     80FUNCTION_END(context_restore_arch)
    8181
Note: See TracChangeset for help on using the changeset viewer.