Skip to content

Commit

Permalink
g3
Browse files Browse the repository at this point in the history
  • Loading branch information
czhower committed Jul 27, 2017
1 parent 88534e9 commit 83fdcbe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Demos/GuessG3/GuessBootGen3.Cosmos
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
<Compile Remove="*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GuessG3\KernelGen3.csproj">
<Name>KernelGen3</Name>
<ProjectReference Include="..\GuessG3\GuessKernelGen3.csproj">
<Name>GuessKernelGen3</Name>
<Project>{9e58e949-7b71-45ed-9610-11da287ee933}</Project>
<Private>True</Private>
</ProjectReference>
Expand Down
1 change: 0 additions & 1 deletion source/Cosmos.Build.Builder/CosmosTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ private void CompileCosmos() {
//
Pack(Path.Combine(mSourcePath, "Cosmos.System"), xNugetPkgDir, xVersion);
Pack(Path.Combine(mSourcePath, "Cosmos.System_Plugs"), xNugetPkgDir, xVersion);
//Pack(Path.Combine(Path.Combine(mSourcePath, "Kernel"), "Cosmos.System3_Plugs"), xNugetPkgDir, xVersion);
//
Pack(Path.Combine(mSourcePath, "Cosmos.Debug.Kernel"), xNugetPkgDir, xVersion);
Pack(Path.Combine(mSourcePath, "Cosmos.Debug.Kernel.Plugs.Asm"), xNugetPkgDir, xVersion);
Expand Down
4 changes: 3 additions & 1 deletion source/Cosmos.IL2CPU/CompilerEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,17 +291,19 @@ private MethodBase LoadAssemblies() {
//
// Plugs and refs in this list will be loaded absolute (or as proj refs) only. Asm resolution
// will not be tried on them, but will on ASMs they reference.
//

AssemblyLoadContext.Default.Resolving += Default_Resolving;
mLoadedExtensions = new List<CompilerExtensionBase>();

string xKernelBaseName = UseGen3Kernel ? "Cosmos.System.Boot" : "Cosmos.System.Kernel";
LogMessage("Kernel " + (UseGen3Kernel ? "Gen3" : "Gen2"));
LogMessage("Kernel Base: " + xKernelBaseName);
Type xKernelType = null;

foreach (string xRef in References) {
LogMessage("Checking Reference: " + xRef);
if (File.Exists(xRef)) {
LogMessage(" Exists");
var xAssembly = AssemblyLoadContext.Default.LoadFromAssemblyCacheOrPath(xRef);

CompilerHelpers.Debug($"Looking for kernel in {xAssembly}");
Expand Down
2 changes: 1 addition & 1 deletion source/Kernel/Cosmos.System/Boot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Cosmos.System {
public abstract class Boot {
// IL2CPU finds this by name and this is where Cosmos takes the hand off from the bootloader.
// IL2CPU finds this method by name and this is where Cosmos takes the hand off from the bootloader.
public void EntryPoint() {
Run();
}
Expand Down

0 comments on commit 83fdcbe

Please sign in to comment.