This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 7f4279b8af50c7dd2a0cd81c119974ad3c0eebb3 Author: p-szafonimateusz <[email protected]> AuthorDate: Sat Nov 16 13:29:12 2024 +0100 arch/x86_64/: fix broken set_cr3() arch/x86_64/: fix broken set_cr3() Signed-off-by: p-szafonimateusz <[email protected]> --- arch/x86_64/include/intel64/irq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86_64/include/intel64/irq.h b/arch/x86_64/include/intel64/irq.h index 38e1e335ce..03764c4418 100644 --- a/arch/x86_64/include/intel64/irq.h +++ b/arch/x86_64/include/intel64/irq.h @@ -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)
