#define _ARCH_H_
#include <stdint.h>
-#include <stdlib.h>
-
+//#include <stdlib.h>
+#include <pthread.h>
+#undef CLONE_VM
#define _MODULE_NAME_ "NativeKernel"
#define BITS (sizeof(intptr_t)*8)
typedef intptr_t tVAddr;
typedef intptr_t tPAddr;
+typedef int BOOL;
+
+//typedef uint32_t tTID;
+//typedef uint32_t tPID;
+//typedef uint32_t tUID;
+//typedef uint32_t tGID;
+
struct sShortSpinlock
{
- int Lock;
+ int IsValid;
+ pthread_mutex_t Mutex;
};
#define SHORTLOCK(...)
#define SHORTREL(...)
+//#define NUM_CFG_ENTRIES 10
+
#endif