Changeset 2bf4936 in mainline for kernel/arch/sparc64/src/start.S


Ignore:
Timestamp:
2009-04-14T15:50:56Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
47a6708
Parents:
577b531
Message:

On sparc64, do fast indentity mapping only for physical memory.
For addresses above physical memory, such as I/O devices,
fall through to the C miss handler and map the memory noncacheably.
Replace deprecated Bicc instructions with proper Bcc instructions.

File:
1 edited

Legend:

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

    r577b531 r2bf4936  
    8585        sllx %l5, 13 + (63 - (PHYSMEM_ADDR_SIZE - 1)), %l5
    8686        srlx %l5, 63 - (PHYSMEM_ADDR_SIZE - 1), %l5     
    87        
     87
    8888        /*
    8989         * Setup basic runtime environment.
     
    334334        ldx [%g2], %g3
    335335        cmp %g3, %g1
    336         bne 2b
     336        bne %xcc, 2b
    337337        nop
    338338
     
    382382
    383383/*
    384  * This variable is used by the fast_data_MMU_miss trap handler. In runtime, it
    385  * is further modified to reflect the starting address of physical memory.
    386  */
     384 * The fast_data_access_mmu_miss_data_hi label and the end_of_identity and
     385 * kernel_8k_tlb_data_template variables are meant to stay together,
     386 * aligned on 16B boundary.
     387 */
     388.global fast_data_access_mmu_miss_data_hi
     389.global end_of_identity
    387390.global kernel_8k_tlb_data_template
     391
     392.align 16
     393/*
     394 * This label is used by the fast_data_access_MMU_miss trap handler.
     395 */
     396fast_data_access_mmu_miss_data_hi:
     397/*
     398 * This variable is used by the fast_data_access_MMU_miss trap handler.
     399 * In runtime, it is modified to contain the address of the end of physical
     400 * memory.
     401 */
     402end_of_identity:
     403        .quad -1
     404/*
     405 * This variable is used by the fast_data_access_MMU_miss trap handler.
     406 * In runtime, it is further modified to reflect the starting address of
     407 * physical memory.
     408 */
    388409kernel_8k_tlb_data_template:
    389410#ifdef CONFIG_VIRT_IDX_DCACHE
Note: See TracChangeset for help on using the changeset viewer.