| To: | David Daney <ddaney@caviumnetworks.com> |
|---|---|
| Subject: | Re: [PATCH] MIPS: Calculate proper ebase value for 64-bit kernels |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Wed, 7 Apr 2010 16:39:39 +0100 |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <1270585790-12730-1-git-send-email-ddaney@caviumnetworks.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1270585790-12730-1-git-send-email-ddaney@caviumnetworks.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.20 (2009-08-17) |
On Tue, Apr 06, 2010 at 01:29:50PM -0700, David Daney wrote: > The ebase is relative to CKSEG0 not CAC_BASE. On a 32-bit kernel they > are the same thing, for a 64-bit kernel they are not. > > It happens to kind of work on a 64-bit kernel as they both reference > the same physical memory. However since the CPU uses the CKSEG0 base, > determining if a J instruction will reach always gives the wrong > result unless we use the same number the CPU uses. Applied, thanks! Ralf |
| Previous by Date: | Re: [PATCH] MIPS: Alchemy: db1200: remove custom wait implementation, Ralf Baechle |
|---|---|
| Next by Date: | [PATCH v2 1/3] MIPS: add a common mips_cyc2ns(), Wu Zhangin |
| Previous by Thread: | [PATCH] MIPS: Calculate proper ebase value for 64-bit kernels, David Daney |
| Next by Thread: | Re: [PATCH] MIPS: Calculate proper ebase value for 64-bit kernels, Wu Zhangjin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |