Changeset f3776a3 in mainline
- Timestamp:
- 2009-01-29T15:35:01Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e5be99a
- Parents:
- 6196dae
- Location:
- boot/arch/ppc32/loader
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/loader/_link.ld.in
r6196dae rf3776a3 4 4 5 5 SECTIONS { 6 .boot 0x 10000000: AT (0) {6 .boot 0x01000000: AT (0) { 7 7 *(BOOTSTRAP); 8 8 *(REALMODE); -
boot/arch/ppc32/loader/asm.S
r6196dae rf3776a3 29 29 #include "asm.h" 30 30 #include "regname.h" 31 #include "debug.inc"32 31 33 32 .text … … 141 140 real_mode: 142 141 143 DEBUG_INIT144 DEBUG_real_mode145 146 142 # copy kernel to proper location 147 143 # … … 164 160 lwz r29, 0(r5) 165 161 166 DEBUG_INIT167 DEBUG_copy_loop168 169 162 copy_loop: 170 163 … … 181 174 bdnz copy_loop 182 175 183 DEBUG_end_copy_loop184 185 176 addi r5, r5, 4 186 177 b page_copy 187 178 188 179 copy_end: 189 190 DEBUG_segments191 180 192 181 # initially fill segment registers … … 221 210 # invalidate block address translation registers 222 211 223 DEBUG_bat224 225 212 li r30, 0 226 213 … … 251 238 # create empty Page Hash Table 252 239 # on top of memory, size 64 KB 253 254 DEBUG_pht255 240 256 241 lwz r31, 0(r3) # r31 = memory size … … 283 268 284 269 bdnz pht_clear 285 286 DEBUG_end_pht_clear287 270 288 271 clear_end: … … 291 274 292 275 # create BAT identity mapping 293 294 DEBUG_mapping295 276 296 277 lwz r31, 0(r3) # r31 = memory size … … 316 297 bdnz bat_mask 317 298 318 DEBUG_bat_mask319 320 299 andi. r31, r31, 0x07ff # mask = mask & 0x07ff (BAT can map up to 256 MB) 321 300 … … 337 316 338 317 no_bat: 339 318 340 319 #endif 341 342 DEBUG_tlb343 320 344 321 tlbia 345 322 tlbsync 346 347 DEBUG_prepare348 323 349 324 # start the kernel … … 374 349 sync 375 350 isync 376 377 DEBUG_rfi378 351 rfi 379 352
Note:
See TracChangeset
for help on using the changeset viewer.