Changeset 27f67f5 in mainline for kernel/arch/ia64/src


Ignore:
Timestamp:
2016-04-22T20:43:34Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a52e2f4
Parents:
054476d
Message:

ia64: use asmtool.h macros for defining symbols

Location:
kernel/arch/ia64/src
Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/asm.S

    r054476d r27f67f5  
    2727 */
    2828
     29#include <abi/asmtool.h>
    2930#include <arch/register.h>
    3031
    3132.text
    32 .global memcpy_from_uspace
    33 .global memcpy_to_uspace
    34 .global memcpy_from_uspace_failover_address
    35 .global memcpy_to_uspace_failover_address
    3633
    3734/** Copy memory from/to userspace.
     
    4643 *
    4744 */
    48 memcpy_from_uspace:
    49 memcpy_to_uspace:
     45FUNCTION_BEGIN(memcpy_from_uspace)
     46FUNCTION_BEGIN(memcpy_to_uspace)
    5047        alloc loc0 = ar.pfs, 3, 1, 0, 0
    5148       
     
    132129                mov ar.pfs = loc0
    133130                br.ret.sptk.many rp
     131FUNCTION_END(memcpy_from_uspace)
     132FUNCTION_END(memcpy_to_uspace)
    134133
    135 memcpy_from_uspace_failover_address:
    136 memcpy_to_uspace_failover_address:
     134SYMBOL(memcpy_from_uspace_failover_address)
     135SYMBOL(memcpy_to_uspace_failover_address)
    137136        /* Return 0 on failure */
    138137        mov r8 = r0
     
    140139        br.ret.sptk.many rp
    141140
    142 .global cpu_halt
    143 cpu_halt:
     141FUNCTION_BEGIN(cpu_halt)
    144142        br cpu_halt
     143FUNCTION_END(cpu_halt)
    145144
    146145/** Switch to userspace - low level code.
     
    154153 *
    155154 */
    156 .global switch_to_userspace
    157 switch_to_userspace:
     155FUNCTION_BEGIN(switch_to_userspace)
    158156        alloc loc0 = ar.pfs, 6, 3, 0, 0
    159157       
     
    191189       
    192190        rfi ;;
     191FUNCTION_END(switch_to_userspace)
    193192
    194 .global early_putchar
    195 early_putchar:
     193FUNCTION_BEGIN(early_putchar)
    196194        br.ret.sptk.many b0
     195FUNCTION_END(early_putchar)
  • kernel/arch/ia64/src/context.S

    r054476d r27f67f5  
    2727#
    2828
     29#include <abi/asmtool.h>
    2930#include <arch/context_struct.h>
    3031
    3132.text
    3233
    33 .global context_save_arch
    34 .global context_restore_arch
    35 
    36 context_save_arch:
     34FUNCTION_BEGIN(context_save_arch)
    3735        alloc loc0 = ar.pfs, 1, 49, 0, 0
    3836        mov loc1 = ar.unat ;;
     
    182180        add r8 = r0, r0, 1      /* context_save returns 1 */
    183181        br.ret.sptk.many b0
    184 
    185 context_restore_arch:
     182FUNCTION_END(context_save_arch)
     183
     184FUNCTION_BEGIN(context_restore_arch)
    186185        alloc loc0 = ar.pfs, 1, 50, 0, 0        ;;
    187186
     
    338337        mov r8 = r0                     /* context_restore returns 0 */
    339338        br.ret.sptk.many b0
    340 
     339FUNCTION_END(context_restore_arch)
     340
  • kernel/arch/ia64/src/debug/stacktrace_asm.S

    r054476d r27f67f5  
    2727#
    2828
     29#include <abi/asmtool.h>
     30
    2931.text
    3032
    31 .global frame_pointer_get
    32 .global program_counter_get
    33 
    34 frame_pointer_get:
     33FUNCTION_BEGIN(frame_pointer_get)
    3534        mov r8 = r0
    3635        br.ret.sptk.many b0
     36FUNCTION_END(frame_pointer_get)
    3737
    38 program_counter_get:
     38FUNCTION_BEGIN(program_counter_get)
    3939        mov r8 = r0
    4040        br.ret.sptk.many b0
     41FUNCTION_END(program_counter_get)
     42
  • kernel/arch/ia64/src/dummy.S

    r054476d r27f67f5  
    2727#
    2828
     29#include <abi/asmtool.h>
     30
    2931.text
    3032
    31 .global calibrate_delay_loop
    32 .global asm_delay_loop
    33 .global cpu_sleep
    34 .global dummy
     33FUNCTION_BEGIN(calibrate_delay_loop)
     34FUNCTION_BEGIN(asm_delay_loop)
     35FUNCTION_BEGIN(cpu_sleep)
     36        br.ret.sptk.many b0
     37FUNCTION_END(calibrate_delay_loop)
     38FUNCTION_END(asm_delay_loop)
     39FUNCTION_END(cpu_sleep)
    3540
    36 calibrate_delay_loop:
    37 asm_delay_loop:
    38 cpu_sleep:
    39 
    40 dummy:
    41         br.ret.sptk.many b0
    42 
  • kernel/arch/ia64/src/ivt.S

    r054476d r27f67f5  
    2828#
    2929
     30#include <abi/asmtool.h>
    3031#include <arch/stack.h>
    3132#include <arch/register.h>
     
    101102.endm
    102103
    103 .global heavyweight_handler
    104 heavyweight_handler:
     104SYMBOL(heavyweight_handler)
    105105    /* 1. copy interrupt registers into bank 0 */
    106106   
     
    297297        rfi ;;
    298298
    299 .global heavyweight_handler_inner
    300 heavyweight_handler_inner:
     299FUNCTION_BEGIN(heavyweight_handler_inner)
    301300        /*
    302301         * From this point, the rest of the interrupted context
     
    538537        mov ar.pfs = loc0
    539538        br.ret.sptk.many b0
    540 
    541 .global ivt
     539FUNCTION_END(heavyweight_handler_inner)
     540
    542541.align 32768
    543 ivt:
     542SYMBOL(ivt)
    544543        HEAVYWEIGHT_HANDLER 0x00
    545544        HEAVYWEIGHT_HANDLER 0x04
  • kernel/arch/ia64/src/start.S

    r054476d r27f67f5  
    2727#
    2828
     29#include <abi/asmtool.h>
    2930#include <arch/register.h>
    3031#include <arch/mm/page.h>
     
    4142.section K_TEXT_START, "ax"
    4243
    43 .global kernel_image_start
    44 
    4544stack0:
    4645
     
    5352#       r2      Address of the boot code's bootinfo structure.
    5453#
    55 kernel_image_start:
     54SYMBOL(kernel_image_start)
    5655        .auto
    5756       
     
    113112        rfi ;;
    114113
    115 .global paging_start
    116114paging_start:
    117115       
Note: See TracChangeset for help on using the changeset viewer.