Ignore:
File:
1 edited

Legend:

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

    ra52e2f4 r9d58539  
    2828#
    2929
    30 #include <abi/asmtool.h>
    3130#include <arch/arch.h>
    3231
    33 #if defined(PROCESSOR_us) || defined(PROCESSOR_us3)
    3432#define ICACHE_SIZE       8192
    3533#define ICACHE_LINE_SIZE  32
    3634#define ICACHE_SET_BIT    (1 << 13)
    3735#define ASI_ICACHE_TAG    0x67
    38 #endif  /* PROCESSOR_us || PROCESSOR_us3 */
    3936
    4037.register %g2, #scratch
     
    4340.register %g7, #scratch
    4441
     42.global start
     43.global halt
     44.global jump_to_kernel
     45
    4546.section BOOTSTRAP, "ax"
    4647
    47 SYMBOL(start)
     48start:
    4849        ba %xcc, 1f
    4950        nop
     
    9394.text
    9495
    95 FUNCTION_BEGIN(halt)
     96halt:
    9697        ba %xcc, halt
    9798        nop
    98 FUNCTION_END(halt)
    9999
    100 FUNCTION_BEGIN(jump_to_kernel)
     100jump_to_kernel:
    101101        /*
    102102         * Guarantee cache coherence:
     
    131131        jmp %o3
    132132        nop
    133 FUNCTION_END(jump_to_kernel)
    134133
    135134# Flush I-cache
    136135icache_flush:
    137 #if defined(PROCESSOR_us) || defined(PROCESSOR_us3)
    138136        set ((ICACHE_SIZE - ICACHE_LINE_SIZE) | ICACHE_SET_BIT), %g1
    139137        stxa %g0, [%g1] ASI_ICACHE_TAG
     
    151149       
    152150        nop
    153 #else
    154         // TODO: sun4v
    155         retl
    156         nop
    157 #endif  /* PROCESSOR_us || PROCESSOR_us3 */
    158151
    159 FUNCTION_BEGIN(ofw)
     152.global ofw
     153ofw:
    160154        save %sp, -(STACK_WINDOW_SAVE_AREA_SIZE + STACK_ARG_SAVE_AREA_SIZE), %sp
    161155        set ofw_cif, %l0
     
    173167        ret
    174168        restore %o0, 0, %o0
    175 FUNCTION_END(ofw)
Note: See TracChangeset for help on using the changeset viewer.