Big Changes - See commit details
[tpg/acess2.git] / Kernel / include / common.h
index 0ff9c7f..3482504 100644 (file)
@@ -60,6 +60,11 @@ enum eConfigs {
 /**
  * \}
  */
+// --- Interface Flags & Macros
+#define CLONE_VM       0x10
+
+// === Types ===
+typedef void (*tThreadFunction)(void*);
 
 // === Kernel Export Macros ===
 /**
@@ -103,12 +108,13 @@ extern void       Debug_HexDump(char *Header, void *Data, Uint Length);
 # define LOG(_fmt...)  Debug_Log((char*)__func__, _fmt)
 # define LEAVE(_t...)  Debug_Leave((char*)__func__, _t)
 # define LEAVE_RET(_t,_v...)   do{LEAVE(_t,_v);return _v;}while(0)
-//# define LEAVE_RET(_t)       do{LEAVE(_t);return;}
+# define LEAVE_RET0()  do{LEAVE('-');return;}while(0)
 #else
 # define ENTER(...)
 # define LOG(...)
 # define LEAVE(...)
 # define LEAVE_RET(_t,_v...)   return (_v)
+# define LEAVE_RET0()  return
 #endif
 /**
  * \}
@@ -158,7 +164,7 @@ extern int  MM_Map(tVAddr VAddr, tPAddr PAddr);
 /**
  * \brief Get the physical address of \a VAddr
  * \param VAddr        Address of the page to get the physical address of
- * \return Physical page mapped at \A VAddr
+ * \return Physical page mapped at \a VAddr
  */
 extern tPAddr  MM_GetPhysAddr(tVAddr VAddr);
 /**

UCC git Repository :: git.ucc.asn.au