Cosmos/source/Cosmos.Core/ObjUtilities.cs
Og-Rok 2d5f637a91 Softwaare Multitasking
Working context switching but far from stable. Changes needed to be made
to the internals of cosmos to include mutex's in vital components (Heap,
Thread Manager, ect). Context switching currently only switches the
general registers and does not switch the MMX context, however this will
be added in the future. Also when a thread currently dies it takes the
whole system down, patches to the IDT handlers needed to be made to
prevent system lockup in the future
2018-04-04 01:22:52 +01:00

19 lines
452 B
C#

using IL2CPU.API.Attribs;
using System;
namespace Cosmos.Core
{
public static unsafe class ObjUtilities
{
public static uint GetPointer(Delegate aVal)
{
return (uint)aVal.GetHashCode();
}
[PlugMethod(PlugRequired = true)]
public static uint GetPointer(Object aVal) { return 0; }
[PlugMethod(PlugRequired = true)]
public static uint GetEntryPoint() { return 0; }
}
}