diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-09-02 17:30:15 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-09-02 17:30:15 +0200 |
| commit | e47e393fc01c663ca634068c56a41eb74ed01439 (patch) | |
| tree | 3f2e313834295db3d18b93bbe539126097496183 /dev/ZKA/HALKit/AMD64/HalControlRegister.s | |
| parent | b3888ff9e2c18da6b73a57f453f7ad36fea61b7b (diff) | |
[ FIX ] A fix has been found for the SYSRET issue. Will apply it later.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/HALKit/AMD64/HalControlRegister.s')
| -rw-r--r-- | dev/ZKA/HALKit/AMD64/HalControlRegister.s | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
