kernel/eka/include/kernel/kern_priv.h
changeset 109 b3a1d9898418
parent 90 947f0dc9f7a8
child 132 e4a7b1cbe40c
--- a/kernel/eka/include/kernel/kern_priv.h	Mon May 03 13:47:38 2010 +0300
+++ b/kernel/eka/include/kernel/kern_priv.h	Fri May 14 17:13:29 2010 +0300
@@ -35,7 +35,7 @@
 #include <e32const_private.h>
 #include <e32des8_private.h>
 #include <e32event_private.h>
-
+#include <kernel/heap_hybrid.h>
 
 #ifndef __MINIMUM_MACHINE_CODE__
 #ifdef __MARM__
@@ -1522,10 +1522,10 @@
 		};
 	enum TMask
 		{
-		EMaskFail = ETypeFail << KCSPBitsFree, 
-		EMaskCapsOnly = ETypeCapsOnly << KCSPBitsFree,
-		EMaskSecureId = ETypeSecureId << KCSPBitsFree,
-		EMaskVendorId = ETypeVendorId << KCSPBitsFree,
+		EMaskFail = TUint32 (ETypeFail) << KCSPBitsFree, 
+		EMaskCapsOnly = TUint32 (ETypeCapsOnly) << KCSPBitsFree,
+		EMaskSecureId = TUint32 (ETypeSecureId) << KCSPBitsFree,
+		EMaskVendorId = TUint32 (ETypeVendorId) << KCSPBitsFree,
 		};
 	TInt Set(const TSecurityPolicy& aPolicy);
 #ifndef __REMOVE_PLATSEC_DIAGNOSTIC_STRINGS__
@@ -2262,7 +2262,7 @@
 /********************************************
  * Kernel heap
  ********************************************/
-class RHeapK : public RHeap
+class RHeapK : public RHybridHeap
 	{
 public:
 	static RHeapK* FixedHeap(TAny* aBase, TInt aMaxLength);
@@ -2280,37 +2280,18 @@
 	static void CheckThreadState();
 	static void Fault(TInt aFault);
 	inline TBool CheckForSimulatedAllocFail()
-		{ return RHeap::CheckForSimulatedAllocFail(); }
+	    { return RHybridHeap::CheckForSimulatedAllocFail(); }	
 	inline DMutex* Mutex() const; /**< @internalComponent */
 public:
 	friend class Monitor;
 	};
 
-inline void RHeap::Lock() const
-	{
-	DMutex* m = *(DMutex**)&iLock;
-	if (m)
-		Kern::MutexWait(*m);
-	}
-
-inline void RHeap::Unlock() const
-	{
-	DMutex* m = *(DMutex**)&iLock;
-	if (m)
-		Kern::MutexSignal(*m);
-	}
-
 /**
 @internalComponent
 */
 inline DMutex* RHeapK::Mutex() const
 	{ return *(DMutex**)&iLock;	}
 
-inline TInt RHeap::SetBrk(TInt aBrk)
-	{
-	return ((DChunk*)iChunkHandle)->Adjust(aBrk);
-	}
-
 enum TSecureClockStatusFlags 
 	{
 	ESecureClockPresent = 1,		// signals a trusted time source has been found