diff options
author | Undefine <undefine@undefine.pl> | 2022-07-22 20:48:24 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-07-27 21:46:42 +0000 |
commit | 97cc33ca47c21f21c13d0b386511f589b25b7998 (patch) | |
tree | 4eecc8720ce2c0cb371ca44d2cbafb39d434e14d /Kernel/Syscalls/uname.cpp | |
parent | 6c4b5775e1ac45a96d3b8c65b3e7fb93a6135d3d (diff) | |
download | serenity-97cc33ca47c21f21c13d0b386511f589b25b7998.zip |
Everywhere: Make the codebase more architecture aware
Diffstat (limited to 'Kernel/Syscalls/uname.cpp')
-rw-r--r-- | Kernel/Syscalls/uname.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Kernel/Syscalls/uname.cpp b/Kernel/Syscalls/uname.cpp index 09922a9624..dd6469fc36 100644 --- a/Kernel/Syscalls/uname.cpp +++ b/Kernel/Syscalls/uname.cpp @@ -19,8 +19,12 @@ ErrorOr<FlatPtr> Process::sys$uname(Userspace<utsname*> user_buf) memcpy(buf.version, "FIXME", 6); #if ARCH(I386) memcpy(buf.machine, "i686", 5); -#else +#elif ARCH(X86_64) memcpy(buf.machine, "x86_64", 7); +#elif ARCH(AARCH64) + memcpy(buf.machine, "AArch64", 7); +#else +# error Unknown architecture #endif hostname().with_shared([&](auto const& name) { |