From e47e393fc01c663ca634068c56a41eb74ed01439 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 2 Sep 2024 17:30:15 +0200 Subject: [ FIX ] A fix has been found for the SYSRET issue. Will apply it later. Signed-off-by: Amlal El Mahrouss --- dev/ZKA/HALKit/AMD64/HalControlRegister.s | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dev/ZKA/HALKit/AMD64/HalControlRegister.s') diff --git a/dev/ZKA/HALKit/AMD64/HalControlRegister.s b/dev/ZKA/HALKit/AMD64/HalControlRegister.s index 879d35c1..11c52ff3 100644 --- a/dev/ZKA/HALKit/AMD64/HalControlRegister.s +++ b/dev/ZKA/HALKit/AMD64/HalControlRegister.s @@ -15,7 +15,7 @@ hal_flush_tlb: call hal_read_cr3 - mov %rcx, %rax + mov %rax, %rcx call hal_write_cr3 ret @@ -24,17 +24,17 @@ hal_read_cr3: ret hal_read_cr0: - movq %rax, %cr0 + movq %cr0, %rax ret hal_read_cr2: - movq %rax, %cr2 + movq %cr3, %rax ret hal_write_cr3: - movq %cr3, %rdi + movq %rcx, %cr3 ret hal_write_cr0: - movq %cr0, %rdi + movq %rcx, %cr3 ret -- cgit v1.2.3