public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: Ian Thompson <ithompso@stargateip.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How can I jump to non-linux address space?
Date: Sat, 6 Oct 2001 08:57:43 +0100	[thread overview]
Message-ID: <20011006085743.A23628@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20011004213523.D14538@flint.arm.linux.org.uk> <NFBBIBIEHMPDJNKCIKOBCELFCAAA.ithompso@stargateip.com>
In-Reply-To: <NFBBIBIEHMPDJNKCIKOBCELFCAAA.ithompso@stargateip.com>; from ithompso@stargateip.com on Fri, Oct 05, 2001 at 05:38:53PM -0700

On Fri, Oct 05, 2001 at 05:38:53PM -0700, Ian Thompson wrote:
> I tried both of these, and I must be doing something wrong.  For (1), I
> grabbed the code you mentioned from the RiscPC port (setup_mm_for_reboot()
> and some code from the soft reset routine).  After calling
> setup_mm_for_reboot, if I call __ioremap(), the processor hangs.  If I shut
> down the MMU, I get the same results.

You will need to disable interrupts if the machine vectors are located at
address 0 (check your boot logs with a recent kernel for a message like
"Vectors relocated to ...").

It's probably best to call cpu_proc_fin(), setup_mm_for_reboot() and
cpu_reset(address) directly rather than making your own copy - these
functions already do the right things for you.  setup_mm_for_reboot()
will remap all of user space with a 1:1 virtual to physical mapping,
and hopefully on the Xscale, the two cpu_* functions do the intended
setup for this (I've not reviewed the xscale stuff in any great detail
yet though).

--
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


  reply	other threads:[~2001-10-06  7:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-04  1:10 How can I jump to non-linux address space? Ian Thompson
2001-10-04  9:04 ` Helge Hafting
2001-10-04 19:40   ` Ian Thompson
2001-10-04 20:32     ` Richard B. Johnson
2001-10-05  0:35       ` Ian Thompson
2001-10-05  7:55         ` Russell King
2001-10-08 12:51         ` Richard B. Johnson
2001-10-04 20:35 ` Russell King
2001-10-06  0:38   ` Ian Thompson
2001-10-06  7:57     ` Russell King [this message]
2001-10-08 17:43       ` Ian Thompson
2001-10-08 20:01         ` Russell King

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=20011006085743.A23628@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=ithompso@stargateip.com \
    --cc=linux-kernel@vger.kernel.org \
    /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