Date: Mon, 27 Sep 2010 09:21:03 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= <phcoder@gmail.com> To: freebsd-mips@freebsd.org Subject: [RFC] [yeeloong] cache algorithms Message-ID: <4CA045DF.2060803@gmail.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------080909020701060704070106 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Loongson the cache maintenance routines are subtly different (took me a very long time to figure out). Here I attach the patch which would adapt the algorithms for Loongson but it would also break other CPUs so I would like your comment on how to best incorporate it into current tree? The problems are: 1) Other bits are used to specify the way 2) i-cache has only index_invalidate and no hit_invalidate 3) secondary cache flush is a must on dma operations Is it better to copy-paste mipsNN_* to something like mipsNN_loongson_* or is it better to use #ifdef's ? Should I define mips_sdcache_* to a nop on non-Loongson? -- Regards Vladimir 'φ-coder/phcoder' Serbinenko --------------080909020701060704070106--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CA045DF.2060803>
