diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-04-10 08:10:10 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-04-10 08:10:10 +0000 |
| commit | 862d7f33414132cb73f7f3968250a071d78c191b (patch) | |
| tree | c46cc7115fb97114e17e836e1dbd8d116c975793 /arch | |
| parent | 5a8659adaa54ce9514db72d1e40f33dec88605ff (diff) | |
| download | teachos-862d7f33414132cb73f7f3968250a071d78c191b.tar.xz teachos-862d7f33414132cb73f7f3968250a071d78c191b.zip | |
Replace iret with iretq (64-bit)
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 4 |
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 */); } |
