summaryrefslogtreecommitdiff
path: root/kernel/arch/x86_64/arch.cpp
blob: 3e6705ba48a67a41561d354baa903cae42852782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// ============================================================================
// arch/x86_64/arch.cpp — x86_64 architecture-specific primitives
// ============================================================================

#include <kernel/arch.h>

namespace arch {

[[noreturn]] void halt() {
    for (;;) asm volatile("hlt");
}

const char* name() {
    return "x86_64";
}

} // namespace arch