aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-04-10 08:10:10 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-04-10 08:10:10 +0000
commit862d7f33414132cb73f7f3968250a071d78c191b (patch)
treec46cc7115fb97114e17e836e1dbd8d116c975793 /arch/x86_64/src/kernel
parent5a8659adaa54ce9514db72d1e40f33dec88605ff (diff)
downloadteachos-862d7f33414132cb73f7f3968250a071d78c191b.tar.xz
teachos-862d7f33414132cb73f7f3968250a071d78c191b.zip
Replace iret with iretq (64-bit)
Diffstat (limited to 'arch/x86_64/src/kernel')
-rw-r--r--arch/x86_64/src/kernel/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp
index 7787f30..daaf216 100644
--- a/arch/x86_64/src/kernel/main.cpp
+++ b/arch/x86_64/src/kernel/main.cpp
@@ -66,7 +66,7 @@ namespace teachos::arch::kernel
"mov %%ax, %%gs"
: /* No output from call */
: [input] "m"(segment_selector_b));
- asm volatile("iret"
+ asm volatile("iretq"
: /* No output from call */
: /* No input to call */);
}
@@ -74,7 +74,7 @@ namespace teachos::arch::kernel
[[gnu::naked]]
auto iret() -> void
{
- asm volatile("iret"
+ asm volatile("iretq"
: /* No output from call */
: /* No input to call */);
}