All of lore.kernel.org
 help / color / mirror / Atom feed
* c-tx39.c build fix
@ 2003-04-28 10:13 Atsushi Nemoto
  2003-04-28 11:16 ` Ralf Baechle
  0 siblings, 1 reply; 3+ messages in thread
From: Atsushi Nemoto @ 2003-04-28 10:13 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: nemoto

Here is a patch to fix build error of c-tx39.c.  Please apply.  Thank you.

diff -u linux-mips-cvs/arch/mips/mm/c-tx39.c linux.new/arch/mips/mm/
--- linux-mips-cvs/arch/mips/mm/c-tx39.c	Mon Apr 28 09:44:52 2003
+++ linux.new/arch/mips/mm/c-tx39.c	Mon Apr 28 19:07:45 2003
@@ -26,7 +26,8 @@
 /* For R3000 cores with R4000 style caches */
 static unsigned long icache_size, dcache_size;		/* Size in bytes */
 static unsigned long icache_way_size, dcache_way_size;	/* Size divided by ways */
-extern long scache_size;
+#define scache_size 0
+#define scache_way_size 0
 
 #include <asm/r4kcache.h>
 
---
Atsushi Nemoto

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

* Re: c-tx39.c build fix
  2003-04-28 10:13 c-tx39.c build fix Atsushi Nemoto
@ 2003-04-28 11:16 ` Ralf Baechle
  2003-04-28 13:04   ` Atsushi Nemoto
  0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2003-04-28 11:16 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: linux-mips, nemoto

On Mon, Apr 28, 2003 at 07:13:04PM +0900, Atsushi Nemoto wrote:

> --- linux-mips-cvs/arch/mips/mm/c-tx39.c	Mon Apr 28 09:44:52 2003
> +++ linux.new/arch/mips/mm/c-tx39.c	Mon Apr 28 19:07:45 2003
> @@ -26,7 +26,8 @@
>  /* For R3000 cores with R4000 style caches */
>  static unsigned long icache_size, dcache_size;		/* Size in bytes */
>  static unsigned long icache_way_size, dcache_way_size;	/* Size divided by ways */
> -extern long scache_size;
> +#define scache_size 0
> +#define scache_way_size 0

Not beautyful ...  but as you can imagine c-tx39.c is another candidate
for eventual integration into c-r4k.c, so applied.

  Ralf

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

* Re: c-tx39.c build fix
  2003-04-28 11:16 ` Ralf Baechle
@ 2003-04-28 13:04   ` Atsushi Nemoto
  0 siblings, 0 replies; 3+ messages in thread
From: Atsushi Nemoto @ 2003-04-28 13:04 UTC (permalink / raw)
  To: ralf; +Cc: nemoto, linux-mips

>>>>> On Mon, 28 Apr 2003 13:16:05 +0200, Ralf Baechle <ralf@linux-mips.org> said:
>> +#define scache_size 0
>> +#define scache_way_size 0

ralf> Not beautyful ...  but as you can imagine c-tx39.c is another
ralf> candidate for eventual integration into c-r4k.c, so applied.

Thanks!

Isn't c-tx39.c too different to integrate into c-r4k.c?

TX3927(TX39H2)'s cache is almost r4k but TX3912(TX39H)'s cache is
more limited.  It does not support writeback, Hit_Invalidate_I,
Hit_Writeback_*, Index_Writeback_* operations.

And both TX39H2/TX39H do not support Create_Dirty_Excl_D so
r4k_clear_page/r4k_copy_page can not be used for any TX39XX.

---
Atsushi Nemoto

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

end of thread, other threads:[~2003-04-28 12:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-28 10:13 c-tx39.c build fix Atsushi Nemoto
2003-04-28 11:16 ` Ralf Baechle
2003-04-28 13:04   ` Atsushi Nemoto

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.