Changeset 44d0758 in mainline for kernel/arch/sparc64/src/start.S


Ignore:
Timestamp:
2006-11-22T18:35:17Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aca95f6b
Parents:
eb353b3
Message:

Add option to compile the sparc64 kernel without the TTE_CV bit support.
The bit is not used by default now.
Enabling it may theoretically lead to physical memory inconsistencies until code that
mitigates the problem is written.

File:
1 edited

Legend:

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

    reb353b3 r44d0758  
    123123        membar #Sync
    124124
     125#ifdef CONFIG_VIRT_IDX_CACHE
     126#define TTE_LOW_DATA(imm)       (TTE_CP | TTE_CV | TTE_P | LMA | (imm))
     127#else /* CONFIG_VIRT_IDX_CACHE */
     128#define TTE_LOW_DATA(imm)       (TTE_CP | TTE_P | LMA | (imm))
     129#endif /* CONFIG_VIRT_IDX_CACHE */
     130
    125131#define SET_TLB_DATA(r1, r2, imm) \
    126         set TTE_CV | TTE_CP | TTE_P | LMA | imm, %r1; \
     132        set TTE_LOW_DATA(imm), %r1; \
    127133        or %r1, %l5, %r1; \
    128134        mov PAGESIZE_4M, %r2; \
     
    349355.global kernel_8k_tlb_data_template
    350356kernel_8k_tlb_data_template:
    351         .quad ((1 << TTE_V_SHIFT) | TTE_CV | TTE_CP | TTE_P | TTE_W)
     357#ifdef CONFIG_VIRT_IDX_CACHE
     358        .quad ((1 << TTE_V_SHIFT) | (PAGESIZE_8K << TTE_SIZE_SHIFT) | TTE_CP | TTE_CV | TTE_P | TTE_W)
     359#else /* CONFIG_VIRT_IDX_CACHE */
     360        .quad ((1 << TTE_V_SHIFT) | (PAGESIZE_8K << TTE_SIZE_SHIFT) | TTE_CP | TTE_P | TTE_W)
     361#endif /* CONFIG_VIRT_IDX_CACHE */
Note: See TracChangeset for help on using the changeset viewer.