Hi Greg,
Thank you for your precious help, I've copied the asm code from pgalloc
to sys_m68k in a dirty way and even if it's flushing the whole cache
it's working very well.
I promise, if I write a more precise version of the flushing code, I'll
paste it here if it can help uClinux.
Ben
Greg Ungerer a écrit :
Hi Benoit,
Benoit Pradelle wrote:
I'm working on a C project under a Coldfire M5407 development board.
I'm running a 2.4 uClinux on the board. I need to flush the data
cache of the board but after a lot of time spent in researches I
still don't know how to do this, I've seen in the sources some pieces
of code for a system call named cacheflush.
Is this function available for Coldfire ?
if yes how to call a such function ?
if no, is there a way to flush a line of cache on this architecture ?
The cache flush functions on ColdFire in the 2.4.x kernels are crude,
but they are present. If you are calling in kernel then look at the
set of functions in linux-2.4.x/include/asm-m68knommu/pgalloc.h
There is a "cacheflush()" system call, depends on whether your
library code supports it as a direct call. In any case the
kernel code that supports it in 2.4.x is merely a stub - it
doesn't actually do anything. It could be fixed :-)
(See function sys_cacheflush() in
linux-2.4.x/arch/m68knommu/kernel/sys_m68k.c(
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED]
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev