| To: | ddaney@caviumnetworks.com, ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH 3/3] MIPS: Octeon: Add add_wired_entry decralation in header file |
| From: | Yang Shi <yang.shi@windriver.com> |
| Date: | Wed, 3 Mar 2010 15:26:12 +0800 |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <3118b3d0f3ed042df1ee2771325c3824e6fc7ba9.1267600234.git.yang.shi@windriver.com> |
| In-reply-to: | <6310b9cb3048ec0c2873d932778165370e5e7c7e.1267600234.git.yang.shi@windriver.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1267601172-17919-1-git-send-email-yang.shi@windriver.com> <6310b9cb3048ec0c2873d932778165370e5e7c7e.1267600234.git.yang.shi@windriver.com> <3118b3d0f3ed042df1ee2771325c3824e6fc7ba9.1267600234.git.yang.shi@windriver.com> |
| References: | <6310b9cb3048ec0c2873d932778165370e5e7c7e.1267600234.git.yang.shi@windriver.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
Octeon's setup.c uses add_wired_entry, but it is not declared anywhere. Copy add_wired_entry decralation fomr pgtable-32.h to pgtable-64.h and include asm/pgtable.h into Octeon's setup.c. Signed-off-by: Yang Shi <yang.shi@windriver.com> --- arch/mips/cavium-octeon/setup.c | 1 + arch/mips/include/asm/pgtable-64.h | 6 ++++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c index 8309d68..f35ba16 100644 --- a/arch/mips/cavium-octeon/setup.c +++ b/arch/mips/cavium-octeon/setup.c @@ -30,6 +30,7 @@ #include <asm/bootinfo.h> #include <asm/sections.h> #include <asm/time.h> +#include <asm/pagtable.h> #include <asm/octeon/octeon.h> diff --git a/arch/mips/include/asm/pgtable-64.h b/arch/mips/include/asm/pgtable-64.h index 26dc69d..85ee34d 100644 --- a/arch/mips/include/asm/pgtable-64.h +++ b/arch/mips/include/asm/pgtable-64.h @@ -23,6 +23,12 @@ #endif /* + * - add_wired_entry() add a fixed TLB entry, and move wired register + */ +extern void add_wired_entry(unsigned long entrylo0, unsigned long entrylo1, + unsigned long entryhi, unsigned long pagemask); + +/* * Each address space has 2 4K pages as its page directory, giving 1024 * (== PTRS_PER_PGD) 8 byte pointers to pmd tables. Each pmd table is a * single 4K page, giving 512 (== PTRS_PER_PMD) 8 byte pointers to page -- 1.6.3.3 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/3] MIPS: Octeon: Remove redundant declaration of octeon_reserve32_memory, Yang Shi |
|---|---|
| Next by Date: | [PATCH 1/3] MIPS: Octeon: Remove superfluous on_each_cpu parameter, Yang Shi |
| Previous by Thread: | [PATCH 2/3] MIPS: Octeon: Remove redundant declaration of octeon_reserve32_memory, Yang Shi |
| Next by Thread: | Re: [PATCH 3/3] MIPS: Octeon: Add add_wired_entry decralation in header file, Florian Fainelli |
| Indexes: | [Date] [Thread] [Top] [All Lists] |