Subversion Repositories HelenOS

Rev

Rev 1870 | Rev 1891 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1870 Rev 1887
Line 83... Line 83...
83
    andcc %g1, %g2, %g3             ! get Context
83
    andcc %g1, %g2, %g3             ! get Context
84
    bnz 0f                      ! Context is non-zero
84
    bnz 0f                      ! Context is non-zero
85
    andncc %g1, %g2, %g3                ! get page address into %g3
85
    andncc %g1, %g2, %g3                ! get page address into %g3
86
    bz 0f                       ! page address is zero
86
    bz 0f                       ! page address is zero
87
 
87
 
88
    or %g3, (TTE_CP|TTE_P|TTE_W), %g2       ! 8K pages are the default (encoded as 0)
88
    or %g3, (TTE_CV|TTE_CP|TTE_P|TTE_W), %g2    ! 8K pages are the default (encoded as 0)
89
    mov 1, %g3
89
    mov 1, %g3
90
    sllx %g3, TTE_V_SHIFT, %g3
90
    sllx %g3, TTE_V_SHIFT, %g3
91
    or %g2, %g3, %g2
91
    or %g2, %g3, %g2
92
    stxa %g2, [%g0] ASI_DTLB_DATA_IN_REG        ! identity map the kernel page
92
    stxa %g2, [%g0] ASI_DTLB_DATA_IN_REG        ! identity map the kernel page
93
    retry
93
    retry