[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] DCACHE always disabled, ICACHE always enabled



While stepping through some startup code trying to get my kernel
working (still not there yet), I noticed that icache was getting
enabled.  But... I have my configuration set up to DISable icache. 
Digging in, it looks like icache will always be enabled and dcache will
always be disabled.  I've made the following changes locally.  The
first fixes the icache config, the second the dcache:

RCS file: /var/cvs/uClinux-2.4.x/arch/microblaze/kernel/mbvanilla.c,v
retrieving revision 1.12
diff -r1.12 mbvanilla.c
199c204
<       #ifdef CONFIG_XILINX_MICROBLAZE0_USE_ICACHE
---
> #if CONFIG_XILINX_MICROBLAZE0_USE_ICACHE==1
201c206
<       #endif
---
> #endif
203c208
<       #ifdef CONFIG_XILINX_MICROBLAZE0_USE_DCACHE
---
> #if CONFIG_XILINX_MICROBLAZE0_USE_DCACHE==1
205c210
<       #endif
---
> #endif


Index: cache.h
===================================================================
RCS file: /var/cvs/uClinux-2.4.x/include/asm-microblaze/cache.h,v
retrieving revision 1.5
diff -r1.5 cache.h
76c76
< #ifdef CONFIG_XILINX_MICROBLAZE0_USER_DCACHE
---
> #ifdef CONFIG_XILINX_MICROBLAZE0_USE_DCACHE
121c121
< #endif /* CONFIG_XILINX_MICROBLAZE0_USER_DCACHE */
---
> #endif /* CONFIG_XILINX_MICROBLAZE0_USE_DCACHE */


John... is this the "right" way to submit a proposal for a patch?

Steve
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/