Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Florian Fainelli <florian@openwrt.org>,
	linux-mips@linux-mips.org,
	David Daney <ddaney@caviumnetworks.com>
Subject: Re: [PATCH 3/3] MIPS: deal with larger physical offsets
Date: Thu, 28 Jan 2010 18:00:37 +0100	[thread overview]
Message-ID: <20100128170036.GE6950@linux-mips.org> (raw)
In-Reply-To: <4B61BD4D.5060406@ru.mvista.com>

On Thu, Jan 28, 2010 at 07:37:33PM +0300, Sergei Shtylyov wrote:

> Florian Fainelli wrote:
> >AR7 has a larger physical offset than other MIPS based
> >systems and therefore needs to setup its handlers beyond
> >the usual KSEG0 range. When running the kernel in mapped
> >mode this modification is also required. Remove function
> >comment which is now incorrect.
> >
> >Signed-off-by: David Daney <ddaney@caviumnetworks.com>
> >Signed-off-by: Eugene Konev <ejka@imfi.kspu.ru>
> >Signed-off-by: Florian Fainelli <florian@openwrt.org>
> >---
> >diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
> >index 574608e..14d515f 100644
> >--- a/arch/mips/kernel/traps.c
> >+++ b/arch/mips/kernel/traps.c
> ...]
> >@@ -1283,9 +1279,18 @@ void __init *set_except_vector(int n, void *addr)
> > 	exception_handlers[n] = handler;
> > 	if (n == 0 && cpu_has_divec) {
> >-		*(u32 *)(ebase + 0x200) = 0x08000000 |
> >-					  (0x03ffffff & (handler >> 2));
> >-		local_flush_icache_range(ebase + 0x200, ebase + 0x204);
> >+		unsigned long jump_mask = ~((1 << 28) - 1);
> >+		u32 *buf = (u32 *)(ebase + 0x200);
> >+		unsigned int k0 = 26;
> >+		if((handler & jump_mask) == ((ebase + 0x200) & jump_mask)) {
> 
>  Missing space after *if* (should be easy for Ralf to fix manually
> though). You should run the patch thru scripts/checkpatch.pl first.

Just did that.  Thanks for nitpicking :-)

  Ralf

  reply	other threads:[~2010-01-28 17:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-28 14:22 [PATCH 3/3] MIPS: deal with larger physical offsets Florian Fainelli
2010-01-28 16:31 ` Ralf Baechle
2010-01-28 16:37 ` Sergei Shtylyov
2010-01-28 17:00   ` Ralf Baechle [this message]
2010-01-30 15:58 ` Maxime Bizon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100128170036.GE6950@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=ddaney@caviumnetworks.com \
    --cc=florian@openwrt.org \
    --cc=linux-mips@linux-mips.org \
    --cc=sshtylyov@ru.mvista.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox