/*
* YAFFS: Yet another FFS. A NAND-flash specific file system.
*
- * Copyright (C) 2002-2010 Aleph One Ltd.
+ * Copyright (C) 2002-2011 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Timothy Manning <timothy@yaffs.net>
*/
#include "lib.h"
-static unsigned int *p_counter;
+static volatile unsigned int *p_counter;
static unsigned int numberOfThreads=5;
unsigned int get_num_of_threads(void)
void init_counter(unsigned int size_of_counter)
{
- p_counter=malloc(size_of_counter*sizeof(int));
+ p_counter=malloc(size_of_counter*sizeof(unsigned int));
}