Changeset 8844e70 in mainline for kernel/arch/ia32/src/context.S


Ignore:
Timestamp:
2016-04-11T17:03:47Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3b0f1b9a
Parents:
3a34852
Message:

ia32: use asmtool.h macros for defining symbols

File:
1 edited

Legend:

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

    r3a34852 r8844e70  
    2727#
    2828
     29#include <abi/asmtool.h>
    2930#include <arch/context_struct.h>
    3031
    3132.text
    32 
    33 .global context_save_arch
    34 .global context_restore_arch
    35 
    3633
    3734## Save current CPU context
     
    4037# pointed by the 1st argument. Returns 1 in EAX.
    4138#
    42 context_save_arch:
     39FUNCTION_BEGIN(context_save_arch)
    4340        movl 0(%esp), %eax      # save pc value into eax       
    4441        movl 4(%esp), %edx      # address of the context variable to save context to
     
    5552        incl %eax
    5653        ret
     54FUNCTION_END(context_save_arch)
    5755
    5856
     
    6260# pointed by the 1st argument. Returns 0 in EAX.
    6361#
    64 context_restore_arch:
     62FUNCTION_BEGIN(context_restore_arch)
    6563        movl 4(%esp), %eax      # address of the context variable to restore context from
    6664
     
    7674        xorl %eax, %eax         # context_restore returns 0
    7775        ret
    78 
     76FUNCTION_END(context_restore_arch)
Note: See TracChangeset for help on using the changeset viewer.