Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/sun4u/asm.S

    ra52e2f4 r9d58539  
    2727#
    2828
    29 #include <abi/asmtool.h>
    3029#include <arch/arch.h>
    3130#include <arch/stack.h>
     
    5655.endm
    5756
    58 FUNCTION_BEGIN(write_to_ag_g6)
     57.global write_to_ag_g6
     58write_to_ag_g6:
    5959        WRITE_ALTERNATE_REGISTER %g6, PSTATE_AG_BIT
    60 FUNCTION_END(write_to_ag_g6)
    6160
    62 FUNCTION_BEGIN(write_to_ag_g7)
     61.global write_to_ag_g7
     62write_to_ag_g7:
    6363        WRITE_ALTERNATE_REGISTER %g7, PSTATE_AG_BIT
    64 FUNCTION_END(write_to_ag_g7)
    6564
    66 FUNCTION_BEGIN(write_to_ig_g6)
     65.global write_to_ig_g6
     66write_to_ig_g6:
    6767        WRITE_ALTERNATE_REGISTER %g6, PSTATE_IG_BIT
    68 FUNCTION_END(write_to_ig_g6)
    6968
    70 FUNCTION_BEGIN(read_from_ag_g6)
     69.global read_from_ag_g6
     70read_from_ag_g6:
    7171        READ_ALTERNATE_REGISTER %g6, PSTATE_AG_BIT
    72 FUNCTION_END(read_from_ag_g6)
    7372
    74 FUNCTION_BEGIN(read_from_ag_g7)
     73.global read_from_ag_g7
     74read_from_ag_g7:
    7575        READ_ALTERNATE_REGISTER %g7, PSTATE_AG_BIT
    76 FUNCTION_END(read_from_ag_g7)
    7776
    7877/** Switch to userspace.
     
    8281 * %o2  Userspace address of uarg structure.
    8382 */
    84 FUNCTION_BEGIN(switch_to_userspace)
     83.global switch_to_userspace
     84switch_to_userspace:
    8585        save %o1, -(STACK_WINDOW_SAVE_AREA_SIZE + STACK_ARG_SAVE_AREA_SIZE), %sp
    8686        flushw
     
    119119       
    120120        done                            ! jump to userspace
    121 FUNCTION_END(switch_to_userspace)
    122121
Note: See TracChangeset for help on using the changeset viewer.