diff --git a/IL2CPU.sln b/IL2CPU.sln index c1f4dc90a..6f142776b 100644 --- a/IL2CPU.sln +++ b/IL2CPU.sln @@ -32,6 +32,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cosmos.Core.DebugStub", "so EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cosmos.Debug.Kernel", "source\Cosmos.Debug.Kernel\Cosmos.Debug.Kernel.csproj", "{EDE13333-B2E6-4E04-B995-209B8BDFA9D4}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RingCheck", "source\RingCheck\RingCheck.csproj", "{CCC115FA-1E7E-4013-95C2-B43FCCF27DFF}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -120,6 +122,14 @@ Global {EDE13333-B2E6-4E04-B995-209B8BDFA9D4}.Release|Any CPU.Build.0 = Release|Any CPU {EDE13333-B2E6-4E04-B995-209B8BDFA9D4}.Release|x86.ActiveCfg = Release|Any CPU {EDE13333-B2E6-4E04-B995-209B8BDFA9D4}.Release|x86.Build.0 = Release|Any CPU + {CCC115FA-1E7E-4013-95C2-B43FCCF27DFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CCC115FA-1E7E-4013-95C2-B43FCCF27DFF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CCC115FA-1E7E-4013-95C2-B43FCCF27DFF}.Debug|x86.ActiveCfg = Debug|Any CPU + {CCC115FA-1E7E-4013-95C2-B43FCCF27DFF}.Debug|x86.Build.0 = Debug|Any CPU + {CCC115FA-1E7E-4013-95C2-B43FCCF27DFF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CCC115FA-1E7E-4013-95C2-B43FCCF27DFF}.Release|Any CPU.Build.0 = Release|Any CPU + {CCC115FA-1E7E-4013-95C2-B43FCCF27DFF}.Release|x86.ActiveCfg = Release|Any CPU + {CCC115FA-1E7E-4013-95C2-B43FCCF27DFF}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -135,5 +145,9 @@ Global {8037EF30-3CC2-4555-ACF0-8392250FAE2C} = {46490D36-261E-4D53-85BA-D4F71F09373C} {D8E80776-2800-469B-AE31-D1C016D5E8D3} = {D232F471-5A59-438F-87EA-E1809E3BEDB4} {EDE13333-B2E6-4E04-B995-209B8BDFA9D4} = {46490D36-261E-4D53-85BA-D4F71F09373C} + {CCC115FA-1E7E-4013-95C2-B43FCCF27DFF} = {C286932C-3F6D-47F0-BEEF-26843D1BB11B} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4B900D20-A763-44BD-BCD1-A61B32E80D94} EndGlobalSection EndGlobal diff --git a/source/Cosmos.Build.MSBuild/Cosmos.Build.MSBuild.csproj b/source/Cosmos.Build.MSBuild/Cosmos.Build.MSBuild.csproj index a06acc274..c0eb77c0d 100644 --- a/source/Cosmos.Build.MSBuild/Cosmos.Build.MSBuild.csproj +++ b/source/Cosmos.Build.MSBuild/Cosmos.Build.MSBuild.csproj @@ -19,7 +19,6 @@ - diff --git a/source/Cosmos.Build.MSBuild/Cosmos.targets b/source/Cosmos.Build.MSBuild/Cosmos.targets index dc9a390d9..176ff8dc3 100644 --- a/source/Cosmos.Build.MSBuild/Cosmos.targets +++ b/source/Cosmos.Build.MSBuild/Cosmos.targets @@ -16,6 +16,9 @@ bin $(VSIPDir)\Cosmos.Build.MSBuild.dll $(CosmosDir)\Kernel + @@ -36,6 +39,7 @@ + @@ -44,6 +48,7 @@ + @@ -51,6 +56,9 @@ + diff --git a/source/Cosmos.Build.MSBuild/ReadMe.html b/source/Cosmos.Build.MSBuild/ReadMe.html deleted file mode 100644 index 529e7ef4c..000000000 --- a/source/Cosmos.Build.MSBuild/ReadMe.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/source/Cosmos.Build.MSBuild/RingCheck.cs b/source/Cosmos.Build.MSBuild/RingCheck.cs new file mode 100644 index 000000000..cb715b778 --- /dev/null +++ b/source/Cosmos.Build.MSBuild/RingCheck.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Reflection; +using Microsoft.Build.Framework; + +using Cosmos.Build.Common; + +namespace Cosmos.Build.MSBuild +{ + public class RingCheck : BaseToolTask + { + [Required] + public string KernelAssemblyPath { get; set; } + + [Required] + public string WorkingDir { get; set; } + + private List mAssemblySearchPaths; + + public override bool Execute() + { + return ExecuteTool(WorkingDir, Path.Combine(CosmosPaths.Build, "RingCheck", "RingCheck.exe"), KernelAssemblyPath, "Ring Check"); + } + } +} diff --git a/source/Cosmos.Build.MSBuild/TestClass.cs b/source/Cosmos.Build.MSBuild/TestClass.cs deleted file mode 100644 index 8a2d530c1..000000000 --- a/source/Cosmos.Build.MSBuild/TestClass.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Cosmos.Build.MSBuild -{ - public static class TestClass - { - } -} diff --git a/source/Cosmos.IL2CPU.API/Attribs/AsmMarker.cs b/source/Cosmos.IL2CPU.API/Attribs/AsmMarker.cs index 53b18ae5c..10f2a8a73 100644 --- a/source/Cosmos.IL2CPU.API/Attribs/AsmMarker.cs +++ b/source/Cosmos.IL2CPU.API/Attribs/AsmMarker.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Reflection; namespace Cosmos.IL2CPU.API.Attribs { [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor | AttributeTargets.Field, AllowMultiple = true)] diff --git a/source/Kernel-X86/00-CPU/Cosmos.CPU/Cosmos.CPU.csproj b/source/Kernel-X86/00-CPU/Cosmos.CPU/Cosmos.CPU.csproj index dc5b8a2c8..3cb831b76 100644 --- a/source/Kernel-X86/00-CPU/Cosmos.CPU/Cosmos.CPU.csproj +++ b/source/Kernel-X86/00-CPU/Cosmos.CPU/Cosmos.CPU.csproj @@ -2,12 +2,11 @@ netstandard1.5 + True True Cosmos.snk - - - - True + Cosmos + Cosmos diff --git a/source/Kernel-X86/00-CPU/Cosmos.CPU/INTs.cs b/source/Kernel-X86/00-CPU/Cosmos.CPU/INTs.cs index 8821d4abb..c0a3abeeb 100644 --- a/source/Kernel-X86/00-CPU/Cosmos.CPU/INTs.cs +++ b/source/Kernel-X86/00-CPU/Cosmos.CPU/INTs.cs @@ -138,7 +138,7 @@ namespace Cosmos.CPU { #endregion [AsmMarker(AsmMarker.Type.Int_LastKnownAddress)] - private static uint mLastKnownAddress; + private static uint mLastKnownAddress = 0; private static IRQDelegate[] mIRQ_Handlers = new IRQDelegate[256]; diff --git a/source/Kernel-X86/90-Application/GuessBootGen3.Cosmos b/source/Kernel-X86/90-Application/GuessBootGen3.Cosmos index f3469c8cf..0ff5eb9b3 100644 --- a/source/Kernel-X86/90-Application/GuessBootGen3.Cosmos +++ b/source/Kernel-X86/90-Application/GuessBootGen3.Cosmos @@ -56,17 +56,17 @@ - + Cosmos.CPU {fc65d765-990d-4f00-b240-8dd17fa91ea9} True - + Cosmos.HAL {3f8ede0e-61bd-4d01-95f5-4a5a17f6221e} True - + Cosmos.Platform {63843265-d889-47d2-883e-595289c99f42} True diff --git a/source/RingCheck/App.config b/source/RingCheck/App.config deleted file mode 100644 index b50c74f35..000000000 --- a/source/RingCheck/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/source/RingCheck/Program.cs b/source/RingCheck/Program.cs index 71754f0ce..183173dd5 100644 --- a/source/RingCheck/Program.cs +++ b/source/RingCheck/Program.cs @@ -1,9 +1,19 @@ using System; using System.Text; -namespace RingCheck { - class Program { - static void Main(string[] args) { +namespace RingCheck +{ + class Program + { + static void Main(string[] args) + { + if (args.Length != 1) + { + Console.WriteLine("Usage: ringcheck "); + return; + } + + var xKernelAssemblyPath = args[1]; } } } diff --git a/source/RingCheck/Properties/AssemblyInfo.cs b/source/RingCheck/Properties/AssemblyInfo.cs deleted file mode 100644 index 8b7de944f..000000000 --- a/source/RingCheck/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("RingCheck")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("RingCheck")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("0ee3df1c-44e6-4669-88aa-d8d2612da817")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/source/RingCheck/RingCheck.csproj b/source/RingCheck/RingCheck.csproj index 043a7e4b3..d9499d41a 100644 --- a/source/RingCheck/RingCheck.csproj +++ b/source/RingCheck/RingCheck.csproj @@ -1,52 +1,7 @@ - - - + + - Debug - AnyCPU - {0EE3DF1C-44E6-4669-88AA-D8D2612DA817} - Exe - RingCheck - RingCheck - v4.6.2 - 512 - true + netcoreapp1.0 - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - {a9469897-4fd8-49e7-97f1-fe420a2b75b9} - Cosmos.IL2CPU.API - - - - \ No newline at end of file + +