| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | Re: why it not write those 6bits to entrylo0/1 register? |
| From: | figo zhang <figo1802@gmail.com> |
| Date: | Tue, 17 Nov 2009 16:59:59 +0800 |
| Cc: | linux-mips@linux-mips.org |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=6c4oSV1ffMn29BNxOs6VOARPUGJvn7xe5pAhDfyHfqI=; b=b9kyHwFpf1oWhylwncIjRfsnu5t1Mp+yMgxFWIZysc0wjLPArqRf1uYyjPhicrhjLv 5iganvtktTDlX5rm00oCJXgfsGhVk/6gRUnzusLu8TyJXzx+yGaJKmQiTMRznPUk67Ws HvbGhZz7U1aiXPGwHfpjx0ej01gUEbCIu223w= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=UXzOdgu1PxwW/QTY5LwbXeBx5HjQSYkyINMujzqH5sSVDaR6hbDQ7L9KX8k5uCzxm/ XJZxNzJehaz6MiGQ/UO3QKpjCKN4Wv8pKgS4SecGMaCgx81xmsUE/z1BnhxLBhrY0gCw DoTIp9UQrh/RcXRNSY+l9VQuRAf7todNHR4Dk= |
| In-reply-to: | <20091117084047.GA2923@linux-mips.org> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <c6ed1ac50911170012u7a52fbb9h1ae62cabf766122f@mail.gmail.com> <20091117084047.GA2923@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
|
2009/11/17 Ralf Baechle <ralf@linux-mips.org>
But i have see the kernel code: include/asm-mips/pgtable-bits.h:
#define _CACHE_UNCACHED (2<<3)
#define _CACHE_CACHABLE_NONCOHERENT (3<<3) #define _CACHE_CACHABLE_COW (3<<3) /* Au1x */ #ifdef CONFIG_MIPS_UNCACHED
#define PAGE_CACHABLE_DEFAULT _CACHE_UNCACHED #elif defined(CONFIG_DMA_NONCOHERENT) #define PAGE_CACHABLE_DEFAULT _CACHE_CACHABLE_NONCOHERENT #elif defined(CONFIG_CPU_RM9000) #define PAGE_CACHABLE_DEFAULT _CACHE_CWB #else #define PAGE_CACHABLE_DEFAULT _CACHE_CACHABLE_COW #endif in include/asm-mips/pgtbale.h:
#define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_READ | \
PAGE_CACHABLE_DEFAULT) so, if i set a page attrubite is PAGE_READONLY, this attribute will set to pte , right? so ,
why it should shift 6 bits?
which function write those 6 bits to register? tlb_write_indexed() ? if i want set pages cache attribute is uncached/write-back , how it can set it correctly to MIPS?
Thanks,
Figo.zhang
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: why it not write those 6bits to entrylo0/1 register?, Ralf Baechle |
|---|---|
| Next by Date: | Re: why it not write those 6bits to entrylo0/1 register?, Ralf Baechle |
| Previous by Thread: | Re: why it not write those 6bits to entrylo0/1 register?, Ralf Baechle |
| Next by Thread: | Re: why it not write those 6bits to entrylo0/1 register?, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |