forked from CosmosOS/Cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
124 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
source/Cosmos.Core.Plugs/Assemblers/DisableInterruptsAssembler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
using Cosmos.Assembler.x86; | ||
using Cosmos.Assembler.x86; | ||
using Cosmos.IL2CPU.Plugs; | ||
using XSharp.Compiler; | ||
|
||
namespace Cosmos.Core.Plugs.Assemblers | ||
{ | ||
public class DisableInterruptsAssembler: AssemblerMethod | ||
{ | ||
public override void AssembleNew(Assembler.Assembler aAssembler, object aMethodInfo) | ||
{ | ||
new ClearInterruptFlag(); | ||
XS.ClearInterruptFlag(); | ||
} | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
source/Cosmos.Core.Plugs/Assemblers/EnableInterruptsAssembler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
using Cosmos.Assembler; | ||
using Cosmos.Assembler; | ||
using Cosmos.IL2CPU.Plugs; | ||
using XSharp.Compiler; | ||
|
||
namespace Cosmos.Core.Plugs.Assemblers | ||
{ | ||
public class EnableInterruptsAssembler: AssemblerMethod | ||
{ | ||
public override void AssembleNew(Assembler.Assembler aAssembler, object aMethodInfo) | ||
{ | ||
new Assembler.x86.Sti(); | ||
XS.EnableInterrupts(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.