aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/context_switching/syscall_handler.cpp
blob: 1bc4ef99ec2d5e5c35c7527ee51b454a86ddf17d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "arch/context_switching/syscall_handler.hpp"

#include <cstdint>

namespace teachos::arch::context_switching
{
  [[gnu::naked]]
  auto syscall_handler() -> void
  {
    uint64_t dummy{};
    switch (dummy)
    {
      case 0:
        break;
      default:
        break;
    }
    asm volatile("SYSRET");
  }
}  // namespace teachos::arch::context_switching