mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using IL2CPU.API.Attribs;
|
|
using Cosmos.CPU.x86;
|
|
|
|
namespace Cosmos.CPU_Asm {
|
|
[Plug(Target = typeof(Processor))]
|
|
public class CPUImpl {
|
|
[PlugMethod(Assembler = typeof(CPUUpdateIDTAsm))]
|
|
public static void UpdateIDT(Processor aThis, bool aEnableInterruptsImmediately) {
|
|
}
|
|
|
|
[PlugMethod(Assembler = typeof(CPUGetAmountOfRAMAsm))]
|
|
public static uint GetAmountOfRAM() {
|
|
return 0;
|
|
}
|
|
|
|
[PlugMethod(Assembler = typeof(CPUGetEndOfKernelAsm))]
|
|
public static uint GetEndOfKernel() {
|
|
return 0;
|
|
}
|
|
|
|
[PlugMethod(Assembler = typeof(CPUZeroFillAsm))]
|
|
// TODO: implement this using REP STOSB and REPO STOSD
|
|
public static void ZeroFill(uint aStartAddress, uint aLength) {
|
|
}
|
|
|
|
[PlugMethod(Assembler = typeof(CPUInitFloatAsm))]
|
|
public static void InitFloat(Processor aThis) {
|
|
}
|
|
|
|
[PlugMethod(Assembler = typeof(CPUInitSSEAsm))]
|
|
public static void InitSSE(Processor aThis) {
|
|
}
|
|
|
|
[PlugMethod(Assembler = typeof(CPUHaltAsm))]
|
|
public static void Halt(Processor aThis) {
|
|
}
|
|
|
|
[PlugMethod(Assembler = typeof(CPUDisableINTsAsm))]
|
|
public static void DoDisableInterrupts() {
|
|
}
|
|
|
|
[PlugMethod(Assembler = typeof(CPUEnableINTsAsm))]
|
|
public static void DoEnableInterrupts() {
|
|
}
|
|
}
|
|
}
|