diff --git a/Kernel/FileSystem/SysFS/Subsystems/Kernel/CPUInfo.cpp b/Kernel/FileSystem/SysFS/Subsystems/Kernel/CPUInfo.cpp index 096e400794..4d5ff93ed1 100644 --- a/Kernel/FileSystem/SysFS/Subsystems/Kernel/CPUInfo.cpp +++ b/Kernel/FileSystem/SysFS/Subsystems/Kernel/CPUInfo.cpp @@ -5,7 +5,9 @@ */ #include -#include +#if ARCH(I386) || ARCH(X86_64) +# include +#endif #include #include @@ -23,6 +25,7 @@ UNMAP_AFTER_INIT NonnullLockRefPtr SysFSCPUInformation::mus ErrorOr SysFSCPUInformation::try_generate(KBufferBuilder& builder) { +#if ARCH(I386) || ARCH(X86_64) auto array = TRY(JsonArraySerializer<>::try_create(builder)); TRY(Processor::try_for_each( [&](Processor& proc) -> ErrorOr { @@ -78,6 +81,13 @@ ErrorOr SysFSCPUInformation::try_generate(KBufferBuilder& builder) })); TRY(array.finish()); return {}; +#elif ARCH(AARCH64) + (void)builder; + dmesgln("TODO: Implement ProcessorInfo for AArch64!"); + return Error::from_errno(EINVAL); +#else +# error Unknown architecture +#endif } }