Permalink
Browse files

mroib

  • Loading branch information...
1 parent ca5a233 commit da0394f9d377b16ed7420b172090faa739db528e @comex committed Nov 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 mroib/clean.c
View
@@ -1,6 +1,6 @@
void CleanAndInvalidateCPUDataCache(void *buffer, int bufferLen) {
char *p = buffer;
- while(bufferLen) {
+ while(bufferLen > 0) {
asm("mcr p15, 0, %0, c7, c10, 1" :: "r"(p));
p += 0x10; // should be higher
bufferLen -= 0x10;

0 comments on commit da0394f

Please sign in to comment.