Esempio n. 1
0
 public static void KillProcess(int processID)
 {
     MessageManager.Send(SysCallTarget.KillProcess, (uint)processID);
 }
Esempio n. 2
0
 public static void SetThreadStorageSegmentBase(Addr addr)
 {
     MessageManager.Send(SysCallTarget.SetThreadStorageSegmentBase, addr);
 }
Esempio n. 3
0
 public static void RegisterService(SysCallTarget target)
 {
     MessageManager.Send(SysCallTarget.RegisterService, (uint)target);
 }
Esempio n. 4
0
 public static void WriteDebugMessage(MemoryRegion buf, string message)
 {
     NullTerminatedString.Set((byte *)buf.Start, message);
     MessageManager.Send(SysCallTarget.WriteDebugMessage, buf.Start);
 }
Esempio n. 5
0
 public static void ThreadSleep(uint time)
 {
     MessageManager.Send(SysCallTarget.ThreadSleep, time);
 }
Esempio n. 6
0
 public static void GetFramebufferInfo(MemoryRegion buf)
 {
     MessageManager.Send(SysCallTarget.GetFramebufferInfo, buf.Start);
 }
Esempio n. 7
0
 public static void Tmp_DisplayServer_FlushWindow()
 {
     // TODO: Window Handle
     MessageManager.Send(SysCallTarget.Tmp_DisplayServer_FlushWindow);
 }
Esempio n. 8
0
 public static MemoryRegion RequestMessageBuffer(uint size, uint targetProcessID)
 {
     return(new MemoryRegion(MessageManager.Send(SysCallTarget.RequestMessageBuffer, size, targetProcessID), size));
 }
Esempio n. 9
0
 public static void SetStandartInputOutput(int processID, FileHandle defaultHandle, string targetPath, MemoryRegion buf)
 {
     NullTerminatedString.Set((byte *)buf.Start, targetPath);
     MessageManager.Send(SysCallTarget.SetStandartInputOutput, (uint)processID, defaultHandle, buf.Start);
 }
Esempio n. 10
0
 public static void Tmp_DisplayServer_CreateWindow(int sourceProcessID, CreateWindowResult *result, int width, int height)
 {
     MessageManager.Send(SysCallTarget.Tmp_DisplayServer_CreateWindow, (uint)sourceProcessID, (uint)result, (uint)width, (uint)height);
 }
Esempio n. 11
0
 public static void CreateStandartInputOutput(int processID)
 {
     MessageManager.Send(SysCallTarget.CreateStandartInputOutput, (uint)processID);
 }
Esempio n. 12
0
 public static int CreateMemoryProcess(MemoryRegion buf, uint size)
 {
     return((int)MessageManager.Send(SysCallTarget.CreateMemoryProcess, buf.Start, size));
 }
Esempio n. 13
0
 public static int GetFileLength(MemoryRegion buf, string path)
 {
     NullTerminatedString.Set((byte *)buf.Start, path);
     return((int)MessageManager.Send(SysCallTarget.GetFileLength, buf.Start));
 }
Esempio n. 14
0
 public static uint GetPhysicalMemory(Addr physAddr, USize size)
 {
     return(MessageManager.Send(SysCallTarget.GetPhysicalMemory, physAddr, size));
 }
Esempio n. 15
0
 public static int GetCurrentThreadID()
 {
     return((int)MessageManager.Send(SysCallTarget.GetCurrentThreadID));
 }
Esempio n. 16
0
 public static uint TranslateVirtualToPhysicalAddress(Addr virtAddr)
 {
     return(MessageManager.Send(SysCallTarget.TranslateVirtualToPhysicalAddress, virtAddr));
 }
Esempio n. 17
0
 public static SSize WriteFile(FileHandle handle, MemoryRegion buf)
 {
     return(MessageManager.Send(SysCallTarget.WriteFile, handle, buf.Start, buf.Size));
 }
Esempio n. 18
0
 public static void SetThreadPriority(int priority)
 {
     MessageManager.Send(SysCallTarget.SetThreadPriority, (uint)priority);
 }
Esempio n. 19
0
 public static SSize CreateFifo(MemoryRegion buf, string path)
 {
     NullTerminatedString.Set((byte *)buf.Start, path);
     return((int)MessageManager.Send(SysCallTarget.CreateFifo, buf.Start));
 }
Esempio n. 20
0
 public static Addr GetElfSectionsAddress()
 {
     return(MessageManager.Send(SysCallTarget.GetElfSectionsAddress));
 }
Esempio n. 21
0
 public static void CreateMemoryProcess(MemoryRegion buf, uint size)
 {
     MessageManager.Send(SysCallTarget.CreateMemoryProcess, buf.Start, size);
 }
Esempio n. 22
0
 public static void SetServiceStatus(ServiceStatus status)
 {
     MessageManager.Send(SysCallTarget.SetServiceStatus, (uint)status);
 }
Esempio n. 23
0
 public static void WriteDebugChar(char c)
 {
     MessageManager.Send(SysCallTarget.WriteDebugChar, (byte)c);
 }
Esempio n. 24
0
 public static void RegisterInterrupt(byte irq)
 {
     MessageManager.Send(SysCallTarget.RegisterInterrupt, irq);
 }
Esempio n. 25
0
 public static uint RequestMemory(uint size)
 {
     return(MessageManager.Send(SysCallTarget.RequestMemory, size));
 }
Esempio n. 26
0
 public static int GetProcessByName(MemoryRegion buf, string processName)
 {
     NullTerminatedString.Set((byte *)buf.Start, processName);
     return((int)MessageManager.Send(SysCallTarget.GetProcessByName, buf.Start));
 }
Esempio n. 27
0
 public static uint GetProcessIDForCommand(SysCallTarget target)
 {
     return(MessageManager.Send(SysCallTarget.GetProcessIDForCommand, (uint)target));
 }
Esempio n. 28
0
 public static FileHandle OpenFile(MemoryRegion buf, string path)
 {
     NullTerminatedString.Set((byte *)buf.Start, path);
     return((int)MessageManager.Send(SysCallTarget.OpenFile, buf.Start));
 }
Esempio n. 29
0
 public static int GetRemoteProcessID()
 {
     return((int)MessageManager.Send(SysCallTarget.GetRemoteProcessID));
 }