arch/x86_64/: fix broken set_cr3()

arch/x86_64/: fix broken set_cr3()

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
p-szafonimateusz 2024-11-16 13:29:12 +01:00 committed by Alan C. Assis
parent 289f43f0ad
commit 7f4279b8af

View file

@ -571,7 +571,7 @@ static inline void set_pcid(uint64_t pcid)
static inline void set_cr3(uint64_t cr3)
{
__asm__ volatile("mov %0, %%cr3" : "=rm"(cr3) : : "memory");
__asm__ volatile("mov %0, %%cr3" :: "r"(cr3));
}
static inline uint64_t get_cr3(void)