Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/src/asm.S

    r9d58539 ra52e2f4  
    2828#
    2929
     30#include <abi/asmtool.h>
    3031#include <arch/arch.h>
    3132
     33#if defined(PROCESSOR_us) || defined(PROCESSOR_us3)
    3234#define ICACHE_SIZE       8192
    3335#define ICACHE_LINE_SIZE  32
    3436#define ICACHE_SET_BIT    (1 << 13)
    3537#define ASI_ICACHE_TAG    0x67
     38#endif  /* PROCESSOR_us || PROCESSOR_us3 */
    3639
    3740.register %g2, #scratch
     
    4043.register %g7, #scratch
    4144
    42 .global start
    43 .global halt
    44 .global jump_to_kernel
    45 
    4645.section BOOTSTRAP, "ax"
    4746
    48 start:
     47SYMBOL(start)
    4948        ba %xcc, 1f
    5049        nop
     
    9493.text
    9594
    96 halt:
     95FUNCTION_BEGIN(halt)
    9796        ba %xcc, halt
    9897        nop
     98FUNCTION_END(halt)
    9999
    100 jump_to_kernel:
     100FUNCTION_BEGIN(jump_to_kernel)
    101101        /*
    102102         * Guarantee cache coherence:
     
    131131        jmp %o3
    132132        nop
     133FUNCTION_END(jump_to_kernel)
    133134
    134135# Flush I-cache
    135136icache_flush:
     137#if defined(PROCESSOR_us) || defined(PROCESSOR_us3)
    136138        set ((ICACHE_SIZE - ICACHE_LINE_SIZE) | ICACHE_SET_BIT), %g1
    137139        stxa %g0, [%g1] ASI_ICACHE_TAG
     
    149151       
    150152        nop
     153#else
     154        // TODO: sun4v
     155        retl
     156        nop
     157#endif  /* PROCESSOR_us || PROCESSOR_us3 */
    151158
    152 .global ofw
    153 ofw:
     159FUNCTION_BEGIN(ofw)
    154160        save %sp, -(STACK_WINDOW_SAVE_AREA_SIZE + STACK_ARG_SAVE_AREA_SIZE), %sp
    155161        set ofw_cif, %l0
     
    167173        ret
    168174        restore %o0, 0, %o0
     175FUNCTION_END(ofw)
Note: See TracChangeset for help on using the changeset viewer.