CONFIG_SPARC_LEON option
PATCH 1/7 CONFIG_SPARC_LEON option
From: Konrad Eisele <[email protected]>
Below the new patch,
Quoted 9 lines
Review
Quoted 5 lines
(quoted diff) +5
-0+config LEON + bool "Leon processor family" + depends on SPARC32 + ---help--- + If you say Y here if you are running on a LEON processor.I would have preferred
SPARC_LEONhere - but no strong opinion on that. Rationale is that LEON is a specialzation of a sparc.
Changed to CONFIG_SPARC_LEON
Quoted 5 lines
Quoted 1 line
# Bus options (PCI etc.)
defconfig updates like this is not needed. The default is n so that would be picked up anyway.
Removed
Quoted 7 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ +#if defined(CONFIG_LEON)We usually use the shorter:
#ifdefCONFIG_LEON
is there is only one symbol to check.
Changed
Quoted 10 lines
Review
Quoted 6 lines
(quoted diff) +5
-0+#define ASI_LEON_BYPASS 0x1c +#define ASI_LEON_FLUSH_PAGE 0x10 + +#define LEON_TYPEDEF typedef +#define LEON_VOLATILE volatileThis obscufation shall die.
Also you really need to revisit all the abuses of volatile. Please read:
Documentation/volatile-considered-harmful.txt
Removed typdef and volatile
Quoted 7 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+constant ASI_MMU_BP : std_logic_vector(4 downto 0) := "11100"; +constant ASI_MMU_DIAG : std_logic_vector(4 downto 0) := "11101"; +constant ASI_MMU_DSU : std_logic_vector(4 downto 0) := "11111"; +*/This comment block confuses me. Looks like some VHDL sneaked in. Could you update the proper definitons one-by-one?
Removed
Quoted 8 lines
Review
Quoted 6 lines
(quoted diff) +6
-0+ +#ifdef CONFIG_OPEN_ETH +#define LEON_ETH_BASE_ADD ((unsigned long)LEON_VA_ETHERMAC) +/* map leon on ethermac adress space at pa 0xb0000000 */ +#define LEON_VA_ETHERMAC DVMA_VADDR +#endifAt best this looks like some leon specific driver thing?
Removed
Quoted 6 lines
Quoted 4 lines
(quoted diff) +3
-0+ HARDDBG_PRINTF("[<-%03d @ %22s()]:\n" , __LINE__, __func__); +#define HARDDBG_OUT(fmt, arg...) \ + HARDDBG_PRINTF("[->%03d @ %22s()]:" fmt , __LINE__, __func__, ##arg);
Rest of sparc does not have such stuff.
Why do leon need it?
Yes, it is a raw register uart dump routine that makes live easier.
Quoted 4 lines
Quoted 2 lines
+#if 1
Not needed.
Removed
Quoted 7 lines
Review
Quoted 3 lines
(quoted diff) +2
-0+#ifndef __ASSEMBLER__ +A lot of what follows could be used from assebler with no problem. Try to restrict your no asm groups to non compatible stuff - with some common sense applied.
Moved
Quoted 8 lines
Quoted 6 lines
(quoted diff) +4
-0+ +struct amba_prom_registers { + unsigned int phys_addr; /* The physical address of this register */ + unsigned int reg_size; /* How many bytes does this register takeup? */
+};For stuff that maps to HW use bitspecific types like u32, u16 etc.
Changed to u32
Quoted 6 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+} LEON3_IrqCtrl_Regs_Map; +1) do not use typedefs
2) user lower case names
3) use bitwidt specific types
done 1 + 2
Quoted 4 lines
Quoted 1 line
+#define
LEON3_GPTIMER_CTRL_ISPENDING(r)(((r)&LEON3_GPTIMER_CTRL_PENDING) ? 1 : 0)Btw - 80 is not a hard limit.
Break it when it makes sense.
Done more vertical alignment
Quoted 5 lines
Review
Quoted 3 lines
(quoted diff) +2
-0+ +LEON_TYPEDEF void (*GPTIMER_CALLBACK) (void);small caps..
Ok.
Quoted 24 lines
Quoted 4 lines
(quoted diff) +2
-0+LEON_TYPEDEF struct _sparc_gptimer { + LEON3_GpTimer_Regs_Map *inst;Review
Quoted 10 lines
(quoted diff) +9
-0+ unsigned int ctrl, reload, value, scalarreload; + int irq, flags, idxinst, idx, enabled, connected, minscalar; + int ticksPerSecond, stat; + GPTIMER_CALLBACK callback; + int arg; +} sparc_gptimer; +LEON_TYPEDEF struct _sparc_gptimer { + LEON3_GpTimer_Regs_Map *inst; + unsigned int ctrl;unsigned int reload; unsigned int value; unsigned int scalarreload; ....Review
Quoted 5 lines
(quoted diff) +5
-0+ int irq, flags, idxinst, idx, enabled, connected, minscalar; + int ticksPerSecond, stat; + GPTIMER_CALLBACK callback; + int arg; +} sparc_gptimer;
Quoted 4 lines
leon_gptimer?Add the following to
amba.h?
Or maybeleon_amba.hto split up things?
Removed these 2 structs, they where unused here.
Quoted 4 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+#define ASI_LEON3_SYSCTRL_DCFG 0x0c +#define ASI_LEON3_SYSCTRL_CFG_SNOOPING (1<<27) +#define ASI_LEON3_SYSCTRL_CFG_SSIZE(c) (1<<((c>>20)&0xf))spaes around operator - also in macros.
Ok.
Quoted 4 lines
Quoted 1 line
+#ifdef
__sparcBut his is a kernel only file - confused?
Removed
Quoted 2 lines
Veritical alignmnet would be good.
Done
Quoted 6 lines
Review
Quoted 4 lines
(quoted diff) +3
-0+ +#define PAGE_MIN_SHIFT (12) +#define PAGE_MIN_SIZE (1UL << PAGE_MIN_SHIFT)Use
AC(1,UL)so this is usefull from assembler.
I'm a bit unsure about this one. I'll keep 1UL, PAGE_MIN_SIZE is not used in assembly.
Quoted 8 lines
Please use following order:
1) All linux/* includes. The longest lines first.
--space--
2) All asm/* includes. The longest lines first
--space--
3) All local includes
Ok, but I'm a bit suspect regarging longest-name-sorting, I rather leave linux/kernel.h at the top.
Quoted 3 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+#undef LEON_IMASK +#define LEON_IMASK ((&LEON3_IrqCtrl_Regs->mask[0]))Hack - is it needed?
Removed #undef
Quoted 5 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+{ + return LEON3_BYPASS_LOAD_PA(&LEON3_IrqCtrl_Regs->intid[cpu]) & 0x1f; +}I wonder what this UPPERCASE
LEON3_BYPASS_LOAD_PAthing is?
It is a bypass-mmu-and-access-physical address inline.
Quoted 8 lines
Quoted 1 line
+# endif
No space between # and endif.
And please add a comment with the conent of the if so we can follow it. (Do not do that for short if/endif blocks).This function could use a few helper function
to make it more readable and with less ifdeffery.
I removed all SMP stuff for now. This way it gets cleaner.
Quoted 5 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+void _amba_init(struct device_node *dp, struct device_node ***nextp); +#endifThis file is leon specific - so why this ifdef/endif? And I think this prototype belong in a header?
Removed the ifdefs. However if I move the prototype to the header I'll draw in many dependencies to define "struct device_node". Therefore I think this way is cleaner.
Quoted 4 lines
Review
Quoted 3 lines
(quoted diff) +2
-0+ +void console_print_LEON(const char *p);Same here - why not in a header?
This time I move it to leon.h.
Quoted 2 lines
Quoted 1 line
+}
Please revisit all funtions and check if they all need to be non-static.
Added some statics
Quoted 4 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+#define PFN(x) ((x) >> PAGE_SHIFT) +extern unsigned long last_valid_pfn;Move to header file.
Done
Quoted 3 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+#endif +}This is leon spacif - drop the ifdefs.
Done
This macro will shield, if undefined, the sun-sparc code from LEON specific code. In particular include/asm/leon.h will get empty through #ifdef arch/sparc/kernel/leon.c not compiled through Makefile:obj-$(CONFIG_SPARC_LEON) arch/sparc/mm/leon.c not compiled through Makefile:obj-$(CONFIG_SPARC_LEON)
--- arch/sparc/Kconfig | 6 arch/sparc/include/asm/leon.h | 571 +++++++++++++++++++++++++++++++++++++++++ arch/sparc/kernel/leon_k.c | 195 ++++++++++++++ arch/sparc/mm/leon_m.c | 254 ++++++++++++++++++ 4 files changed, 1026 insertions(+), 0 deletions(-)
arch/sparc/Kconfig +6 -0
@@ -435,6 +435,12 @@ config SERIAL_CONSOLE If unsure, say N. +config SPARC_LEON + bool "Sparc Leon processor family" + depends on SPARC32 + ---help--- + If you say Y here if you are running on a SPARC-LEON processor. + endmenu menu "Bus options (PCI etc.)"
arch/sparc/include/asm/leon.h new file +571 -0
571 lines not on this page · raw message
arch/sparc/kernel/leon_k.c new file +195 -0
195 lines not on this page · raw message
arch/sparc/mm/leon_m.c new file +250 -0
250 lines not on this page · raw message
Signature · 1 line
1.4.2.1
Konrad: sorry for the double message, hit reply instead of reply-all - it's best to keep things on-list =)
Quoted 19 lines · On Wed, Jun 10, 2009 at 20:09, <[email protected]> wrote:
From: Konrad Eisele <[email protected]>
This macro will shield, if undefined, the sun-sparc code from LEON specific code. In particularinclude/asm/leon.hwill get empty through #ifdefarch/sparc/kernel/leon.cnot compiled through Makefile:obj-$(CONFIG_SPARC_LEON)arch/sparc/mm/leon.cnot compiled through Makefile:obj-$(CONFIG_SPARC_LEON)--- arch/sparc/Kconfig | 6 arch/sparc/include/asm/leon.h | 571 +++++++++++++++++++++++++++++++++++++++++ arch/sparc/kernel/leon_k.c | 195 ++++++++++++++ arch/sparc/mm/leon_m.c | 254 ++++++++++++++++++ 4 files changed, 1026 insertions(+), 0 deletions(-)arch/sparc/include/asm/leon.h new file +0
-0
[snip]
Quoted 46 lines
arch/sparc/include/asm/leon.h new file +46
-0+#ifndef __ASSEMBLY__ + +/* do a virtual address read without cache */ +static inline unsigned long leon_readnobuffer_reg (unsigned long paddr) +{ +unsigned long retval; + __asm__ __volatile__("lda [%1] %2, %0\n\t" : +"=r" (retval) :"r" (paddr),"i" (ASI_LEON_NOCACHE )); +return retval; +} + +/* do a physical address bypass write, i.e. for 0x80000000 */ +static inline void leon_store_reg (unsigned long paddr,unsigned long value) +{ + __asm__ __volatile__("sta %0, [%1] %2\n\t" : :"r" (value),"r" (paddr), +"i" (ASI_LEON_BYPASS ) :"memory" ); +} + +/* do a physical address bypass load, i.e. for 0x80000000 */ +static inline unsigned long leon_load_reg (unsigned long paddr) +{ +unsigned long retval; + __asm__ __volatile__("lda [%1] %2, %0\n\t" : +"=r" (retval) :"r" (paddr),"i" (ASI_LEON_BYPASS )); +return retval; +} + +extern inline void leon_srmmu_disabletlb (void ) +{ +unsigned int retval; + __asm__ __volatile__("lda [%%g0] %2, %0\n\t" :"=r" (retval) :"r" (0 ), +"i" (ASI_LEON_MMUREGS )); + retval |=LEON_CNR_CTRL_TLBDIS ; + __asm__ __volatile__("sta %0, [%%g0] %2\n\t" : :"r" (retval),"r" (0 ), +"i" (ASI_LEON_MMUREGS ) :"memory" ); +} + +extern inline void leon_srmmu_enabletlb (void ) +{ +unsigned int retval; + __asm__ __volatile__("lda [%%g0] %2, %0\n\t" :"=r" (retval) :"r" (0 ), +"i" (ASI_LEON_MMUREGS )); + retval = retval & ~LEON_CNR_CTRL_TLBDIS ; + __asm__ __volatile__("sta %0, [%%g0] %2\n\t" : :"r" (retval),"r" (0 ), +"i" (ASI_LEON_MMUREGS ) :"memory" ); +}
[snip]
Quoted 16 lines
arch/sparc/include/asm/leon.h new file +16
-0+extern inline unsigned long sparc_leon3_get_dcachecfg (void ) +{ +unsigned int retval; + __asm__ __volatile__("lda [%1] %2, %0\n\t" : +"=r" (retval) : +"r" (ASI_LEON3_SYSCTRL_DCFG ), +"i" (ASI_LEON3_SYSCTRL )); +return retval; +} + +/*enable snooping*/ +extern inline void sparc_leon3_enable_snooping (void ) +{ + __asm__ __volatile__ ("lda [%%g0] 2, %%l1\n\t" +"set 0x800000, %%l2\n\t" + "or %%l2, %%l1, %%l2\n\t"
arch/sparc/include/asm/leon.h line 405
Quoted 10 lines
arch/sparc/include/asm/leon.h new file +10
-0+ "sta %%l2, [%%g0] 2\n\t" : : : "l1", "l2"); +}; + +extern inline void sparc_leon3_disable_cache (void ) +{ + __asm__ __volatile__ ("lda [%%g0] 2, %%l1\n\t" +"set 0x00000f, %%l2\n\t" +"andn %%l2, %%l1, %%l2\n\t" +"sta %%l2, [%%g0] 2\n\t" : : :"l1" ,"l2" ); +};
I don't understand what's going on with this code, but I don't think it should live in a header file.
Thanks,
--
Julian Calaby
Email: [email protected]
.Plan: http://sites.google.com/site/juliancalaby/
Quoted 41 lines
[snip]
Quoted 38 lines
arch/sparc/include/asm/leon.h new file +38
-0+#ifndef __ASSEMBLY__ + +/* do a virtual address read without cache */ +static inline unsigned long leon_readnobuffer_reg (unsigned long paddr) +{ +unsigned long retval; + __asm__ __volatile__("lda [%1] %2, %0\n\t" : +"=r" (retval) :"r" (paddr),"i" (ASI_LEON_NOCACHE )); +return retval; +} + +/* do a physical address bypass write, i.e. for 0x80000000 */ +static inline void leon_store_reg (unsigned long paddr,unsigned long value) +{ + __asm__ __volatile__("sta %0, [%1] %2\n\t" : :"r" (value),"r" (paddr), +"i" (ASI_LEON_BYPASS ) :"memory" ); +} + +/* do a physical address bypass load, i.e. for 0x80000000 */ +static inline unsigned long leon_load_reg (unsigned long paddr) +{ +unsigned long retval; + __asm__ __volatile__("lda [%1] %2, %0\n\t" : +"=r" (retval) :"r" (paddr),"i" (ASI_LEON_BYPASS )); +return retval; +} + +extern inline void leon_srmmu_disabletlb (void ) +{ +unsigned int retval; + __asm__ __volatile__("lda [%%g0] %2, %0\n\t" :"=r" (retval) :"r" (0 ), +"i" (ASI_LEON_MMUREGS )); + retval |=LEON_CNR_CTRL_TLBDIS ; + __asm__ __volatile__("sta %0, [%%g0] %2\n\t" : :"r" (retval),"r" (0 ), +"i" (ASI_LEON_MMUREGS ) :"memory" ); +} + +extern inline void leon_srmmu_enabletlb (void )
Quoted 8 lines
arch/sparc/include/asm/leon.h line 168
Quoted 8 lines
arch/sparc/include/asm/leon.h new file +8
-0+{ +unsigned int retval; + __asm__ __volatile__("lda [%%g0] %2, %0\n\t" :"=r" (retval) :"r" (0 ), +"i" (ASI_LEON_MMUREGS )); + retval = retval & ~LEON_CNR_CTRL_TLBDIS ; + __asm__ __volatile__("sta %0, [%%g0] %2\n\t" : :"r" (retval),"r" (0 ), +"i" (ASI_LEON_MMUREGS ) :"memory" ); +}
leon_readnobuffer_reg() read from virtual address but force a cache miss leon_store_reg() leon_load_reg() read from physical address using MMU bypass leon_srmmu_disabletlb() and leon_srmmu_enabletlb() are 2 leon specific helper
functions: the leon-srmmu's tlb can be enabled/disabled (like caches). Mostly used for debugging but useful anyway.
Quoted 24 lines
[snip]
Quoted 21 lines
arch/sparc/include/asm/leon.h new file +21
-0+extern inline unsigned long sparc_leon3_get_dcachecfg (void ) +{ +unsigned int retval; + __asm__ __volatile__("lda [%1] %2, %0\n\t" : +"=r" (retval) : +"r" (ASI_LEON3_SYSCTRL_DCFG ), +"i" (ASI_LEON3_SYSCTRL )); +return retval; +} + +/*enable snooping*/ +extern inline void sparc_leon3_enable_snooping (void ) +{ + __asm__ __volatile__ ("lda [%%g0] 2, %%l1\n\t" +"set 0x800000, %%l2\n\t" +"or %%l2, %%l1, %%l2\n\t" +"sta %%l2, [%%g0] 2\n\t" : : :"l1" ,"l2" ); +}; + +extern inline void sparc_leon3_disable_cache (void ) +{
Quoted 8 lines
arch/sparc/include/asm/leon.h line 405
Quoted 5 lines
arch/sparc/include/asm/leon.h new file +5
-0+ __asm__ __volatile__ ("lda [%%g0] 2, %%l1\n\t" +"set 0x00000f, %%l2\n\t" +"andn %%l2, %%l1, %%l2\n\t" +"sta %%l2, [%%g0] 2\n\t" : : :"l1" ,"l2" ); +};I don't understand what's going on with this code, but I don't think it should live in a header file.
Note that there is a
#ifdef CONFIG_SPARC_LEON
around the whole leon.h file.
sparc_leon3_get_dcachecfg() gets the cache configuration information. That is cache size etc.sparc_leon3_enable_snooping() enables snooping on the amba bus for the caches.sparc_leon3_disable_cache() disable the caches.
All of theses functions are useful to leon.h . How do you think one should proceed? Do you really think it is cleaner when creating a new .h file just for the inlines. Isnt it quite neat with just one leon.h file that includes all sparc-leon specific things?
-- Greetings Konrad
Quoted 11 lines
Thanks,
--
Julian Calaby
Email: [email protected]
.Plan: http://sites.google.com/site/juliancalaby/
Quoted 3 lines · On Wed, Jun 10, 2009 at 12:09:34PM +0200, [email protected] wrote:
From: Konrad Eisele <[email protected]>
Below the new patch,
Hi Konrad.
I will try to find time during the weekend to go over the patches once more.
From a quick skim you have improved tham a lot already. But more work is needed.
Sam
Quoted 109 lines · Konrad Eisele
Quoted 49 lines
[snip]
Quoted 46 lines
arch/sparc/include/asm/leon.h new file +8
-0+#ifndef __ASSEMBLY__ + +/* do a virtual address read without cache */ +static inline unsigned long leon_readnobuffer_reg (unsigned long paddr) +{ + unsigned long retval; + __asm__ __volatile__("lda [%1] %2, %0\n\t" : + "=r"(retval) : "r"(paddr),"i"(ASI_LEON_NOCACHE));
+ return retval;arch/sparc/include/asm/leon.h new file +4
-0+} + +/* do a physical address bypass write, i.e. for 0x80000000 */ +static inline void leon_store_reg(unsigned long paddr, unsigned longvalue)
+{
+__asm____volatile__("sta %0, [%1] %2\n\t" : : "r"(value), "r"(paddr),
+ "i"(ASI_LEON_BYPASS) : "memory");arch/sparc/include/asm/leon.h new file +8
-0+} + +/* do a physical address bypass load, i.e. for 0x80000000 */ +static inline unsigned long leon_load_reg (unsigned long paddr) +{ + unsigned long retval; + __asm__ __volatile__("lda [%1] %2, %0\n\t" : + "=r"(retval) : "r"(paddr),"i"(ASI_LEON_BYPASS));
+ return retval;arch/sparc/include/asm/leon.h new file +6
-0+} + +extern inline void leon_srmmu_disabletlb (void ) +{ + unsigned int retval; + __asm__ __volatile__("lda [%%g0] %2, %0\n\t" : "=r"(retval) :"r"(0),
+ "i"(ASI_LEON_MMUREGS));
+ retval |=LEON_CNR_CTRL_TLBDIS;
+__asm____volatile__("sta %0, [%%g0] %2\n\t" : : "r"(retval), "r"(0),
+ "i"(ASI_LEON_MMUREGS) : "memory");arch/sparc/include/asm/leon.h new file +5
-0+} + +extern inline void leon_srmmu_enabletlb (void ) +{ + unsigned int retval;Quoted 8 lines
Quoted 8 lines
+
__asm____volatile__("lda [%%g0] %2, %0\n\t" : "=r"(retval) :
"r"(0),
+ "i"(ASI_LEON_MMUREGS));
+ retval = retval & ~LEON_CNR_CTRL_TLBDIS;
+__asm____volatile__("sta %0, [%%g0] %2\n\t" : : "r"(retval), "r"(0),
+ "i"(ASI_LEON_MMUREGS) : "memory"); +}
leon_readnobuffer_reg()read from virtual address but force a cache missleon_store_reg()leon_load_reg()read from physical address using MMU bypassleon_srmmu_disabletlb()andleon_srmmu_enabletlb()are 2 leon specific helper
functions: the leon-srmmu's tlb can be enabled/disabled (like caches). Mostly
used for debugging but useful anyway.Quoted 24 lines
[snip]
Quoted 21 lines
arch/sparc/include/asm/leon.h new file +21
-0+extern inline unsigned long sparc_leon3_get_dcachecfg (void ) +{ + unsigned int retval; + __asm__ __volatile__("lda [%1] %2, %0\n\t" : + "=r"(retval) : + "r"(ASI_LEON3_SYSCTRL_DCFG), + "i"(ASI_LEON3_SYSCTRL)); + return retval; +} + +/*enable snooping*/ +extern inline void sparc_leon3_enable_snooping (void ) +{ + __asm__ __volatile__ ("lda [%%g0] 2, %%l1\n\t" + "set 0x800000, %%l2\n\t" + "or %%l2, %%l1, %%l2\n\t" + "sta %%l2, [%%g0] 2\n\t" : : : "l1", "l2"); +}; + +extern inline void sparc_leon3_disable_cache (void ) +{Quoted 8 lines
Quoted 5 lines
+
__asm____volatile__("lda [%%g0] 2, %%l1\n\t"
+ "set0x00000f, %%l2\n\t"
+ "andn %%l2, %%l1, %%l2\n\t"
+ "sta %%l2, [%%g0] 2\n\t" : : : "l1", "l2"); +};I don't understand what's going on with this code, but I don't think it should live in a header file.
Note that there is a
#ifdefCONFIG_SPARC_LEON
around the wholeleon.hfile.
sparc_leon3_get_dcachecfg()gets the cache configuration information. That is cache size etc.sparc_leon3_enable_snooping()enables snooping on the amba bus for the caches.sparc_leon3_disable_cache()disable the caches.
Quoted 4 lines
All of theses functions are useful to
leon.h. How do you think one should proceed? Do you really think it is cleaner when creating a new .h file just for the inlines. Isnt it quite neat with just oneleon.hfile that includes all sparc-leon specific things?
My issue with these functions being in leon.h is that they are code in a header file, despite being small inline functions.
If I were writing this code, I would have placed the functions in files called leon_debug.c or leon_cache.c. However given that these are very low-level functions, and are essentially being used as macros, I can understand why you've put them in this file.
It's pretty much up to you. Now that I've had a better look at these, I understand why you've done this the way you have.
Thanks,
Signature · 4 lines
Julian Calaby Email: [email protected] .Plan: http://sites.google.com/site/juliancalaby/
Konrad,
One more small comment =)
Quoted 21 lines · On Wed, Jun 10, 2009 at 20:09, <[email protected]> wrote:
From: Konrad Eisele <[email protected]>
This macro will shield, if undefined, the sun-sparc code
from LEON specific code. In particularinclude/asm/leon.h
will get empty through #ifdefarch/sparc/kernel/leon.cnot compiled through Makefile:obj-$(CONFIG_SPARC_LEON)arch/sparc/mm/leon.cnot compiled through Makefile:obj-$(CONFIG_SPARC_LEON)
---
arch/sparc/Kconfig | 6arch/sparc/include/asm/leon.h| 571 +++++++++++++++++++++++++++++++++++++++++arch/sparc/kernel/leon_k.c| 195 ++++++++++++++arch/sparc/mm/leon_m.c| 254 ++++++++++++++++++4 files changed, 1026 insertions(+), 0 deletions(-)arch/sparc/mm/leon_m.c new file +0
-0
arch/sparc/mm/leon_m.c line 2
Quoted 2 lines
arch/sparc/mm/leon_m.c new file +2
-0@@ -0,0 +1,254 @@ +/* +* linux/arch/sparc/mm/leon.c
This isn't consistent with the name of the file, something else you might want to change if you re-spin this.
arch/sparc/mm/leon_m.c line 10
Quoted 8 lines
arch/sparc/mm/leon_m.c new file +8
-0+* +* Copyright (C) 2004 Konrad Eisele +* ([email protected], [email protected]), Gaisler Research +* Copyright (C) 2009 Daniel Hellstrom ([email protected]), +* Konrad Eisele ([email protected]) Aeroflex Gaisler AB +* +* do srmmu probe in software +*/
Thanks,
Signature · 4 lines
Julian Calaby Email: [email protected] .Plan: http://sites.google.com/site/juliancalaby/