diff options
| author | Arseney300 <Arseney300@gmail.com> | 2026-03-29 02:07:17 +0700 |
|---|---|---|
| committer | Arseney300 <Arseney300@gmail.com> | 2026-04-08 01:19:07 +0700 |
| commit | 4912796d2e88c6eb5d02fbf0fb9c39f8c9f7cd4c (patch) | |
| tree | 9ee8110e2c090c888f23797cda56c7e2df531695 /kernel/arch/aarch64/arch.cpp | |
bastion: initial implementation
ready project skeleton
dual-arch build system with Linux-config style configuration
UEFI EFI stub loader (PE32+) for x86_64 and AArch64
ELF64 kernel parser
Temporary framebuffer console
freestanding string and c++ abi stubs
For now, kernel boots, prints banner, memory map and go halt
Diffstat (limited to 'kernel/arch/aarch64/arch.cpp')
| -rw-r--r-- | kernel/arch/aarch64/arch.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/kernel/arch/aarch64/arch.cpp b/kernel/arch/aarch64/arch.cpp new file mode 100644 index 0000000..e35b769 --- /dev/null +++ b/kernel/arch/aarch64/arch.cpp @@ -0,0 +1,17 @@ +// ============================================================================ +// arch/aarch64/arch.cpp — AArch64 architecture-specific primitives +// ============================================================================ + +#include <kernel/arch.h> + +namespace arch { + +[[noreturn]] void halt() { + for (;;) asm volatile("wfi"); +} + +const char* name() { + return "AArch64"; +} + +} // namespace arch |
