Rev 870 | Rev 879 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 870 | Rev 872 | ||
---|---|---|---|
Line 75... | Line 75... | ||
75 | movl r10=(KERNEL_PAGE_WIDTH<<PS_SHIFT) |
75 | movl r10=(KERNEL_PAGE_WIDTH<<PS_SHIFT) |
76 | mov cr.itir=r10 |
76 | mov cr.itir=r10 |
77 | movl r10=(KERNEL_TRANSLATION_I) |
77 | movl r10=(KERNEL_TRANSLATION_I) |
78 | itr.i itr[r0]=r10 |
78 | itr.i itr[r0]=r10 |
79 | 79 | ||
80 | # mov cr.ifa=r0 |
- | |
81 | # movl r10=(KERNEL_PAGE_WIDTH<<PS_SHIFT) |
- | |
82 | # mov cr.itir=r10 |
- | |
83 | movl r10=(KERNEL_TRANSLATION_D) |
80 | movl r10=(KERNEL_TRANSLATION_D) |
84 | itr.d dtr[r0]=r10 |
81 | itr.d dtr[r0]=r10 |
85 | 82 | ||
86 | 83 | ||
87 | 84 | ||
Line 96... | Line 93... | ||
96 | movl r10=(PSR_DT_MASK|PSR_RT_MASK|PSR_IT_MASK|PSR_IC_MASK) /*Enable paging*/ |
93 | movl r10=(PSR_DT_MASK|PSR_RT_MASK|PSR_IT_MASK|PSR_IC_MASK) /*Enable paging*/ |
97 | mov r9=psr |
94 | mov r9=psr |
98 | or r10=r10,r9 |
95 | or r10=r10,r9 |
99 | mov cr.ipsr=r10 |
96 | mov cr.ipsr=r10 |
100 | mov cr.ifs=r0 |
97 | mov cr.ifs=r0 |
101 | # movl r8=(paging_start+VRN_KERNEL<<VRN_SHIFT) |
- | |
102 | movl r8=paging_start |
98 | movl r8=paging_start |
103 | mov cr.iip=r8 |
99 | mov cr.iip=r8 |
104 | srlz.d |
100 | srlz.d |
105 | srlz.i |
101 | srlz.i |
106 | .explicit |
102 | .explicit |
Line 132... | Line 128... | ||
132 | 128 | ||
133 | # initialize register stack |
129 | # initialize register stack |
134 | mov ar.rsc = r0 |
130 | mov ar.rsc = r0 |
135 | movl r8=(VRN_KERNEL<<VRN_SHIFT) |
131 | movl r8=(VRN_KERNEL<<VRN_SHIFT) |
136 | mov ar.bspstore = r8 |
132 | mov ar.bspstore = r8 |
137 | # mov ar.bspstore = r0 |
- | |
138 | loadrs |
133 | loadrs |
139 | 134 | ||
140 | .explicit |
135 | .explicit |
141 | # initialize memory stack to some sane value |
136 | # initialize memory stack to some sane value |
142 | # movl r12 = stack0 ;; |
137 | movl r12 = stack0;; |
143 | movl r12 = stack0 + (VRN_KERNEL<<VRN_SHIFT);; |
- | |
144 | 138 | ||
145 | add r12 = - 16, r12 /* allocate a scratch area on the stack */ |
139 | add r12 = - 16, r12 /* allocate a scratch area on the stack */ |
146 | 140 | ||
147 | # initialize gp (Global Pointer) register |
141 | # initialize gp (Global Pointer) register |
148 | movl r1 = _hardcoded_load_address ;; |
142 | movl r1 = _hardcoded_load_address ;; |
149 | 143 | ||
150 | # movl r1 = _hardcoded_load_address + (VRN_KERNEL<<VRN_SHIFT) ;; |
- | |
151 | 144 | ||
152 | 145 | ||
153 | # |
146 | # |
154 | # Initialize hardcoded_* variables. |
147 | # Initialize hardcoded_* variables. |
155 | # |
148 | # |
Line 169... | Line 162... | ||
169 | 162 | ||
170 | movl r18=main_bsp |
163 | movl r18=main_bsp |
171 | mov b1=r18 |
164 | mov b1=r18 |
172 | br.call.sptk.many b0=b1 |
165 | br.call.sptk.many b0=b1 |
173 | 166 | ||
174 | # br.call.sptk.many b0=main_bsp |
- | |
175 | 167 | ||
176 | 0: |
168 | 0: |
177 | br 0b |
169 | br 0b |