All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_LEON case.
@ 2009-06-09 11:22 Konrad Eisele
  2009-06-10  0:01 ` Julian Calaby
  2009-06-10 10:15 ` [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_SPARC_LEON case konrad
  0 siblings, 2 replies; 3+ messages in thread
From: Konrad Eisele @ 2009-06-09 11:22 UTC (permalink / raw)
  To: sparclinux

[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]

 From 93d982ed55ae6f81a06329524fbfdf0fec4d9d1e Mon Sep 17 00:00:00 2001
From: Konrad Eisele <konrad@gaisler.com>
Date: Tue, 9 Jun 2009 12:59:42 +0200
Subject: [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_LEON case.
The sparc-leon SRMMU has no mmu probe logic implemented.
Instead function srmmu_swprobe() is used that is defined in
arch/sparc/mm/leon.c. arch/sparc/include/asm/leon.h on the
other hand defines srmmu_hwprobe(addr) as a macro

Signed-off-by: Konrad Eisele <konrad@gaisler.com>
---
  arch/sparc/include/asm/pgtsrmmu.h |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/sparc/include/asm/pgtsrmmu.h b/arch/sparc/include/asm/pgtsrmmu.h
index 808555f..1701181 100644
--- a/arch/sparc/include/asm/pgtsrmmu.h
+++ b/arch/sparc/include/asm/pgtsrmmu.h
@@ -267,6 +267,7 @@ static inline void srmmu_flush_tlb_page(

  }

+#if !(defined(CONFIG_LEON))
  static inline unsigned long srmmu_hwprobe(unsigned long vaddr)
  {
  	unsigned long retval;
@@ -278,6 +279,7 @@ static inline unsigned long srmmu_hwprob

  	return retval;
  }
+#endif

  static inline int
  srmmu_get_pte (unsigned long addr)
-- 
1.4.2.1


[-- Attachment #2: 0004-Undefine-srmmu_hwprobe-in-the-CONFIG_LEON-case.txt --]
[-- Type: text/plain, Size: 1137 bytes --]

From 93d982ed55ae6f81a06329524fbfdf0fec4d9d1e Mon Sep 17 00:00:00 2001
From: Konrad Eisele <konrad@gaisler.com>
Date: Tue, 9 Jun 2009 12:59:42 +0200
Subject: [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_LEON case.
The sparc-leon SRMMU has no mmu probe logic implemented.
Instead function srmmu_swprobe() is used that is defined in
arch/sparc/mm/leon.c. arch/sparc/include/asm/leon.h on the
other hand defines srmmu_hwprobe(addr) as a macro

Signed-off-by: Konrad Eisele <konrad@gaisler.com>
---
 arch/sparc/include/asm/pgtsrmmu.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/sparc/include/asm/pgtsrmmu.h b/arch/sparc/include/asm/pgtsrmmu.h
index 808555f..1701181 100644
--- a/arch/sparc/include/asm/pgtsrmmu.h
+++ b/arch/sparc/include/asm/pgtsrmmu.h
@@ -267,6 +267,7 @@ static inline void srmmu_flush_tlb_page(
 
 }
 
+#if !(defined(CONFIG_LEON))
 static inline unsigned long srmmu_hwprobe(unsigned long vaddr)
 {
 	unsigned long retval;
@@ -278,6 +279,7 @@ static inline unsigned long srmmu_hwprob
 
 	return retval;
 }
+#endif
 
 static inline int
 srmmu_get_pte (unsigned long addr)
-- 
1.4.2.1


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

* Re: [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_LEON case.
  2009-06-09 11:22 [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_LEON case Konrad Eisele
@ 2009-06-10  0:01 ` Julian Calaby
  2009-06-10 10:15 ` [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_SPARC_LEON case konrad
  1 sibling, 0 replies; 3+ messages in thread
From: Julian Calaby @ 2009-06-10  0:01 UTC (permalink / raw)
  To: sparclinux

On Tue, Jun 9, 2009 at 21:22, Konrad Eisele<konrad@gaisler.com> wrote:
> From 93d982ed55ae6f81a06329524fbfdf0fec4d9d1e Mon Sep 17 00:00:00 2001
> From: Konrad Eisele <konrad@gaisler.com>
> Date: Tue, 9 Jun 2009 12:59:42 +0200
> Subject: [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_LEON case.
> The sparc-leon SRMMU has no mmu probe logic implemented.
> Instead function srmmu_swprobe() is used that is defined in
> arch/sparc/mm/leon.c. arch/sparc/include/asm/leon.h on the
> other hand defines srmmu_hwprobe(addr) as a macro
>
> Signed-off-by: Konrad Eisele <konrad@gaisler.com>
> ---
>  arch/sparc/include/asm/pgtsrmmu.h |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/sparc/include/asm/pgtsrmmu.h
> b/arch/sparc/include/asm/pgtsrmmu.h
> index 808555f..1701181 100644
> --- a/arch/sparc/include/asm/pgtsrmmu.h
> +++ b/arch/sparc/include/asm/pgtsrmmu.h
> @@ -267,6 +267,7 @@ static inline void srmmu_flush_tlb_page(
>
>  }
>
> +#if !(defined(CONFIG_LEON))
>  static inline unsigned long srmmu_hwprobe(unsigned long vaddr)
>  {
>        unsigned long retval;
> @@ -278,6 +279,7 @@ static inline unsigned long srmmu_hwprob
>
>        return retval;
>  }
> +#endif
>
>  static inline int
>  srmmu_get_pte (unsigned long addr)

Surely there is a better way to do this, oh and if this is the only
way, #ifndef CONFIG_LEON is much cleaner.

Thanks,

-- 
Julian Calaby

Email: julian.calaby@gmail.com
.Plan: http://sites.google.com/site/juliancalaby/

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

* [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_SPARC_LEON case.
  2009-06-09 11:22 [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_LEON case Konrad Eisele
  2009-06-10  0:01 ` Julian Calaby
@ 2009-06-10 10:15 ` konrad
  1 sibling, 0 replies; 3+ messages in thread
From: konrad @ 2009-06-10 10:15 UTC (permalink / raw)
  To: sparclinux

From: Konrad Eisele <konrad@gaisler.com>

>>  srmmu_get_pte (unsigned long addr)
> 
> Surely there is a better way to do this, oh and if this is the only
> way, #ifndef CONFIG_LEON is much cleaner.
> 

SPARC-LEON doesnt have a hardware probe, so the function cannot be
used for leon. I implement a softwareprobe instead. Changed to #ifndef CONFIG_LEON


The sparc-leon SRMMU has no mmu probe logic implemented.
Instead function srmmu_swprobe() is used that is defined in
arch/sparc/mm/leon.c. arch/sparc/include/asm/leon.h on the
other hand defines srmmu_hwprobe(addr) as a macro
---
 arch/sparc/include/asm/pgtsrmmu.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/sparc/include/asm/pgtsrmmu.h b/arch/sparc/include/asm/pgtsrmmu.h
index 808555f..267178c 100644
--- a/arch/sparc/include/asm/pgtsrmmu.h
+++ b/arch/sparc/include/asm/pgtsrmmu.h
@@ -267,6 +267,7 @@ static inline void srmmu_flush_tlb_page(
 
 }
 
+#ifndef CONFIG_SPARC_LEON
 static inline unsigned long srmmu_hwprobe(unsigned long vaddr)
 {
 	unsigned long retval;
@@ -278,6 +279,7 @@ static inline unsigned long srmmu_hwprob
 
 	return retval;
 }
+#endif
 
 static inline int
 srmmu_get_pte (unsigned long addr)
-- 
1.4.2.1


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

end of thread, other threads:[~2009-06-10 10:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-09 11:22 [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_LEON case Konrad Eisele
2009-06-10  0:01 ` Julian Calaby
2009-06-10 10:15 ` [PATCH 4/7] Undefine srmmu_hwprobe in the CONFIG_SPARC_LEON case konrad

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.