Changeset 7bb6b06 in mainline for kernel/arch/sparc64/src/start.S


Ignore:
Timestamp:
2006-09-10T21:21:39Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9a5b556
Parents:
208fa65
Message:

Small improvements here and there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/start.S

    r208fa65 r7bb6b06  
    7777        mov %o1, %o2
    7878        mov %o0, %o1
    79         set bootinfo, %o0
     79        sethi %hi(bootinfo), %o0
    8080        call memcpy
    81         nop
     81        or %o0, %lo(bootinfo), %o0
    8282
    8383        /*
    8484         * Switch to kernel trap table.
    8585         */
    86         set trap_table, %g1
    87         wrpr %g1, 0, %tba
     86        sethi %hi(trap_table), %g1
     87        wrpr %g1, %lo(trap_table), %tba
    8888
    8989        /*
     
    121121        sllx %r2, TTE_SIZE_SHIFT, %r2; \
    122122        or %r1, %r2, %r1; \
    123         set 1, %r2; \
     123        mov 1, %r2; \
    124124        sllx %r2, TTE_V_SHIFT, %r2; \
    125125        or %r1, %r2, %r1;
     
    173173        ! write ITLB tag of context 1
    174174        SET_TLB_TAG(g1, MEM_CONTEXT_TEMP)
    175         set VA_DMMU_TAG_ACCESS, %g2
     175        mov VA_DMMU_TAG_ACCESS, %g2
    176176        stxa %g1, [%g2] ASI_IMMU
    177177        flush %g5
     
    183183       
    184184        ! switch to context 1
    185         set MEM_CONTEXT_TEMP, %g1
     185        mov MEM_CONTEXT_TEMP, %g1
    186186        stxa %g1, [VA_PRIMARY_CONTEXT_REG] %asi ! ASI_DMMU is correct here !!!
    187187        flush %g5
     
    194194        ! write ITLB tag of context 0
    195195        SET_TLB_TAG(g1, MEM_CONTEXT_KERNEL)
    196         set VA_DMMU_TAG_ACCESS, %g2
     196        mov VA_DMMU_TAG_ACCESS, %g2
    197197        stxa %g1, [%g2] ASI_IMMU
    198198        flush %g5
     
    211211
    212212        ! set context 1 in the primary context register
    213         set MEM_CONTEXT_TEMP, %g1
     213        mov MEM_CONTEXT_TEMP, %g1
    214214        stxa %g1, [VA_PRIMARY_CONTEXT_REG] %asi ! ASI_DMMU is correct here !!!
    215215        flush %g5
Note: See TracChangeset for help on using the changeset viewer.