Changeset 60316bd in mainline


Ignore:
Timestamp:
2006-06-18T12:43:10Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
611150b
Parents:
bab785fe
Message:

properly place PHT on top of physical memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/loader/asm.S

    rbab785fe r60316bd  
    249249        mtspr dbat3l, r30
    250250       
    251         # create empty page hash table FIXME
     251        # create empty Page Hash Table
     252        # on top of memory, size 64 KB
    252253       
    253254        DEBUG_pht
    254255       
    255         lis r31, 0x07ff
    256         ori r31, r31, 0x0000
    257        
    258         li r30, 0x4000
     256        lwz r31, 0(r3)                # r31 = memory size
     257       
     258        lis r30, 65536@h
     259        ori r30, r30, 65536@l         # r30 = 65536
     260       
     261        subi r29, r30, 1              # r29 = 65535
     262       
     263        sub r31, r31, r30
     264        andc r31, r31, r29            # pht = ALIGN_DOWN(memory_size - 65536, 65536)
     265       
     266        mtsdr1 r31
     267       
     268        li r29, 2
     269        srw r30, r30, r29             # r30 = 16384
    259270        li r29, 0
    260271       
     
    277288        clear_end:
    278289       
    279         lis r31, 0x07ff
    280         ori r31, r31, 0x0000
    281        
    282         mtsdr1 r31
    283        
    284290#ifdef CONFIG_BAT
    285291       
     
    288294        DEBUG_mapping
    289295       
    290         lwz r31, 0(r3)
     296        lwz r31, 0(r3)                # r31 = memory size
    291297       
    292298        lis r29, 0x0002
Note: See TracChangeset for help on using the changeset viewer.