From 6f4b6098b4aacd3293c0921eaaffea1664f6dda4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro?= Date: Fri, 14 Jul 2017 14:17:49 +0100 Subject: [PATCH] Label fixes. --- source/Cosmos.Core_Asm/CPU/CPUUpdateIDTAsm.cs | 2 +- source/Cosmos.IL2CPU/CosmosAssembler.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Cosmos.Core_Asm/CPU/CPUUpdateIDTAsm.cs b/source/Cosmos.Core_Asm/CPU/CPUUpdateIDTAsm.cs index 4cc36b35d..3d188a5ed 100644 --- a/source/Cosmos.Core_Asm/CPU/CPUUpdateIDTAsm.cs +++ b/source/Cosmos.Core_Asm/CPU/CPUUpdateIDTAsm.cs @@ -121,7 +121,7 @@ namespace Cosmos.Core_Asm // reload interrupt list XS.Set(EAX, "_NATIVE_IDT_Pointer"); - XS.Set("static_field__Cosmos_Core_Common_CPU_mInterruptsEnabled", 1, destinationIsIndirect: true, size: RegisterSize.Byte8); + XS.Set("static_field__Cosmos_Core_CPU_mInterruptsEnabled", 1, destinationIsIndirect: true, size: RegisterSize.Byte8); XS.LoadIdt(EAX, isIndirect: true); // Reenable interrupts XS.EnableInterrupts(); diff --git a/source/Cosmos.IL2CPU/CosmosAssembler.cs b/source/Cosmos.IL2CPU/CosmosAssembler.cs index 31fe8f35e..4a6363c87 100644 --- a/source/Cosmos.IL2CPU/CosmosAssembler.cs +++ b/source/Cosmos.IL2CPU/CosmosAssembler.cs @@ -193,7 +193,7 @@ namespace Cosmos.IL2CPU if (mComPort > 0) { - XS.Set("static_field__Cosmos_Core_Common_CPU_mInterruptsEnabled", 1, destinationIsIndirect: true); + XS.Set("static_field__Cosmos_Core_CPU_mInterruptsEnabled", 1, destinationIsIndirect: true, size: RegisterSize.Byte8); XS.LoadIdt(XSRegisters.EAX, isIndirect: true); } XS.Label("AfterCreateIDT");