Changeset 8844e70 in mainline for abi/include


Ignore:
Timestamp:
2016-04-11T17:03:47Z (10 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
  • abi/include/abi/asmtool.h

    r3a34852 r8844e70  
    3636#define ABI_ASMTOOL_H_
    3737
     38#define SYMBOL(sym) \
     39        .global sym; \
     40        sym:
     41#define SYMBOL_BEGIN(sym) \
     42        SYMBOL(sym)
     43#define SYMBOL_END(sym) \
     44        .size sym, . - sym
     45
     46#define OBJECT_BEGIN(obj) \
     47        .type obj, @object; \
     48        SYMBOL_BEGIN(obj)
     49#define OBJECT_END(obj) \
     50        SYMBOL_END(obj)
     51
    3852#define FUNCTION_BEGIN(func) \
    39         .global func; \
    4053        .type func, @function; \
    41         func:   
    42 
     54        SYMBOL_BEGIN(func)     
    4355#define FUNCTION_END(func) \
    44         .size func, . - func
     56        SYMBOL_END(func)
    4557
    4658#endif
Note: See TracChangeset for help on using the changeset viewer.