-
Notifications
You must be signed in to change notification settings - Fork 6
/
Program.cs
43 lines (34 loc) · 1.09 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// This file is part of Abanu, an Operating System written in C#. Web: https://www.abanu.org
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Abanu.Kernel.Core;
using Abanu.Runtime;
using Mosa.Runtime.x86;
namespace Abanu.Kernel
{
public static class Program
{
public static unsafe void Main()
{
ApplicationRuntime.Init();
MessageManager.OnMessageReceived = MessageReceived;
HostCommunicator.Init();
//RuntimeMemory.Free(fileBuf);
SysCalls.WriteDebugChar('+');
while (true)
{
SysCalls.ThreadSleep(0);
}
}
public static unsafe void MessageReceived(in SystemMessage msg)
{
MessageManager.Send(new SystemMessage(SysCallTarget.ServiceReturn, msg.Arg1 + 10));
}
}
}