linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Reg Sparc memory addresses
  2002-09-26  2:01 Reg Sparc memory addresses Shanti Katta
@ 2002-09-26  1:56 ` Ben Collins
  2002-09-26  4:42   ` Jeff Dike
  2002-09-26 17:54   ` Shanti Katta
  0 siblings, 2 replies; 6+ messages in thread
From: Ben Collins @ 2002-09-26  1:56 UTC (permalink / raw)
  To: Shanti Katta; +Cc: sparc-linux, linux-kernel

On Wed, Sep 25, 2002 at 10:01:15PM -0400, Shanti Katta wrote:
> Hi,
> I compiled user-mode-linux kernel on Ultrasparc with load address set to
> 00000000e0000000. But, when I try to debug the kernel, it just says
> cannot access memory at address 0xa00020b0.
> This error message remains the same no matter what I change the load
> address to. Can anyone guide me on valid memory addresses for userspace
> on Sparc? and how much different is that from x86 architecture?

You compiled it on ultrasparc, but I hope you compiled it as a "sparc"
target and not "sparc64".

I'm not familiar with how UML runs in user space, but I suspect it needs
to think it is sparc and not sparc64 for it to run in 32bit sparc
userspace (which is what ultrasparc runs at for most cases).

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo       - http://www.deqo.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Reg Sparc memory addresses
@ 2002-09-26  2:01 Shanti Katta
  2002-09-26  1:56 ` Ben Collins
  0 siblings, 1 reply; 6+ messages in thread
From: Shanti Katta @ 2002-09-26  2:01 UTC (permalink / raw)
  To: sparc-linux; +Cc: linux-kernel

Hi,
I compiled user-mode-linux kernel on Ultrasparc with load address set to
00000000e0000000. But, when I try to debug the kernel, it just says
cannot access memory at address 0xa00020b0.
This error message remains the same no matter what I change the load
address to. Can anyone guide me on valid memory addresses for userspace
on Sparc? and how much different is that from x86 architecture?

-Shanti




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Reg Sparc memory addresses
  2002-09-26  1:56 ` Ben Collins
@ 2002-09-26  4:42   ` Jeff Dike
  2002-09-26 17:54   ` Shanti Katta
  1 sibling, 0 replies; 6+ messages in thread
From: Jeff Dike @ 2002-09-26  4:42 UTC (permalink / raw)
  To: Ben Collins, Shanti Katta; +Cc: sparc-linux, linux-kernel

bcollins@debian.org said:
> I'm not familiar with how UML runs in user space, but I suspect it
> needs to think it is sparc and not sparc64 for it to run in 32bit
> sparc userspace (which is what ultrasparc runs at for most cases).

It just wants to be a normal executable, except that it loads in a 
nonstandard location.  And it would be OK for it to load in the standard
location for the early debugging.

				Jeff


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Reg Sparc memory addresses
  2002-09-26 17:54   ` Shanti Katta
@ 2002-09-26 17:50     ` Ben Collins
  2002-09-26 18:19     ` [uml-devel] " Jeff Dike
  1 sibling, 0 replies; 6+ messages in thread
From: Ben Collins @ 2002-09-26 17:50 UTC (permalink / raw)
  To: Shanti Katta; +Cc: sparclinux, linux-kernel, user-mode-linux-devel

On Thu, Sep 26, 2002 at 01:54:57PM -0400, Shanti Katta wrote:
> On Wed, 2002-09-25 at 21:56, Ben Collins wrote:
> > On Wed, Sep 25, 2002 at 10:01:15PM -0400, Shanti Katta wrote:
> > > Hi,
> > > I compiled user-mode-linux kernel on Ultrasparc with load address set to
> > > 00000000e0000000. But, when I try to debug the kernel, it just says
> > > cannot access memory at address 0xa00020b0.
> > > This error message remains the same no matter what I change the load
> > > address to. Can anyone guide me on valid memory addresses for userspace
> > > on Sparc? and how much different is that from x86 architecture?
> > 
> > You compiled it on ultrasparc, but I hope you compiled it as a "sparc"
> > target and not "sparc64".
> 
> I compiled UML as "sparc64".
> 
>  
> > I'm not familiar with how UML runs in user space, but I suspect it needs
> > to think it is sparc and not sparc64 for it to run in 32bit sparc
> > userspace (which is what ultrasparc runs at for most cases).
> > 
> So, I guess I need to compile UML as "sparc" target and debug it. I am
> not sure how much of UML code runs in kernelspace and how much in
> userspace. So, do I need to compile only the userspace code for UML as
> "sparc" target or the whole of UML?

I believe it all runs in userspace (hence the name user-mode-linux :)

Compiling for sparc64 is the problem I suspect. IIRC, UML uses the
asm-<arch> that you choose, which will break when sparc64 headers are
used for a sparc32 application.

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo       - http://www.deqo.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Reg Sparc memory addresses
  2002-09-26  1:56 ` Ben Collins
  2002-09-26  4:42   ` Jeff Dike
@ 2002-09-26 17:54   ` Shanti Katta
  2002-09-26 17:50     ` Ben Collins
  2002-09-26 18:19     ` [uml-devel] " Jeff Dike
  1 sibling, 2 replies; 6+ messages in thread
From: Shanti Katta @ 2002-09-26 17:54 UTC (permalink / raw)
  To: Ben Collins; +Cc: sparc-linux, linux-kernel, user-mode-linux-devel

On Wed, 2002-09-25 at 21:56, Ben Collins wrote:
> On Wed, Sep 25, 2002 at 10:01:15PM -0400, Shanti Katta wrote:
> > Hi,
> > I compiled user-mode-linux kernel on Ultrasparc with load address set to
> > 00000000e0000000. But, when I try to debug the kernel, it just says
> > cannot access memory at address 0xa00020b0.
> > This error message remains the same no matter what I change the load
> > address to. Can anyone guide me on valid memory addresses for userspace
> > on Sparc? and how much different is that from x86 architecture?
> 
> You compiled it on ultrasparc, but I hope you compiled it as a "sparc"
> target and not "sparc64".

I compiled UML as "sparc64".

 
> I'm not familiar with how UML runs in user space, but I suspect it needs
> to think it is sparc and not sparc64 for it to run in 32bit sparc
> userspace (which is what ultrasparc runs at for most cases).
> 
So, I guess I need to compile UML as "sparc" target and debug it. I am
not sure how much of UML code runs in kernelspace and how much in
userspace. So, do I need to compile only the userspace code for UML as
"sparc" target or the whole of UML?

-Shanti 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [uml-devel] Re: Reg Sparc memory addresses
  2002-09-26 17:54   ` Shanti Katta
  2002-09-26 17:50     ` Ben Collins
@ 2002-09-26 18:19     ` Jeff Dike
  1 sibling, 0 replies; 6+ messages in thread
From: Jeff Dike @ 2002-09-26 18:19 UTC (permalink / raw)
  To: Shanti Katta
  Cc: Ben Collins, sparc-linux, linux-kernel, user-mode-linux-devel

katta@csee.wvu.edu said:
> So, I guess I need to compile UML as "sparc" target and debug it. I am
> not sure how much of UML code runs in kernelspace

None of it does.  That's sort of the point of UML.

				Jeff


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-09-26 18:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-26  2:01 Reg Sparc memory addresses Shanti Katta
2002-09-26  1:56 ` Ben Collins
2002-09-26  4:42   ` Jeff Dike
2002-09-26 17:54   ` Shanti Katta
2002-09-26 17:50     ` Ben Collins
2002-09-26 18:19     ` [uml-devel] " Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).