Ignore:
File:
1 edited

Legend:

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

    ra35b458 ra52e2f4  
    65651:
    6666        ! Disable interrupts and disable address masking.
    67 
     67       
    6868        wrpr %g0, PSTATE_PRIV_BIT, %pstate
    69 
     69       
    7070        wrpr %g0, NWINDOWS - 2, %cansave   ! Set maximum saveable windows
    7171        wrpr %g0, 0, %canrestore           ! Get rid of windows we will never need again
    7272        wrpr %g0, 0, %otherwin             ! Make sure the window state is consistent
    7373        wrpr %g0, NWINDOWS - 1, %cleanwin  ! Prevent needless clean_window traps for kernel
    74 
     74       
    7575        set initial_stack, %sp
    7676        add %sp, -STACK_BIAS, %sp
    77 
     77       
    7878        set ofw_cif, %l0
    79 
     79       
    8080        ! Initialize OpenFirmware
    81 
     81       
    8282        call ofw_init
    8383        stx %o4, [%l0]
    84 
     84       
    8585        ba %xcc, bootstrap
    8686        nop
     
    105105         * 3. Flush instruction pipeline.
    106106         */
    107 
     107       
    108108        /*
    109109         * US3 processors have a write-invalidate cache, so explicitly
     
    115115        be %xcc, 1f
    116116        nop
    117 
     117       
    118118        0:
    119119                call icache_flush
    120120                nop
    121 
     121       
    122122        1:
    123123                membar #StoreStore
    124 
     124       
    125125        /*
    126126         * Flush the instruction pipeline.
    127127         */
    128128        flush %i7
    129 
     129       
    130130        ! Jump to kernel
    131131        jmp %o3
     
    138138        set ((ICACHE_SIZE - ICACHE_LINE_SIZE) | ICACHE_SET_BIT), %g1
    139139        stxa %g0, [%g1] ASI_ICACHE_TAG
    140 
     140       
    141141        0:
    142142                membar #Sync
    143143                subcc %g1, ICACHE_LINE_SIZE, %g1
    144144                bnz,pt %xcc, 0b
    145 
     145       
    146146        stxa %g0, [%g1] ASI_ICACHE_TAG
    147147        membar #Sync
    148148        retl
    149 
     149       
    150150        ! SF Erratum #51
    151 
     151       
    152152        nop
    153153#else
     
    161161        set ofw_cif, %l0
    162162        ldx [%l0], %l0
    163 
     163       
    164164        rdpr %pstate, %l1
    165165        and %l1, ~PSTATE_AM_BIT, %l2
    166166        wrpr %l2, 0, %pstate
    167 
     167       
    168168        jmpl %l0, %o7
    169169        mov %i0, %o0
    170 
     170       
    171171        wrpr %l1, 0, %pstate
    172 
     172       
    173173        ret
    174174        restore %o0, 0, %o0
Note: See TracChangeset for help on using the changeset viewer.