From 97cc33ca47c21f21c13d0b386511f589b25b7998 Mon Sep 17 00:00:00 2001 From: Undefine Date: Fri, 22 Jul 2022 20:48:24 +0200 Subject: Everywhere: Make the codebase more architecture aware --- Tests/Kernel/crash.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Tests/Kernel/crash.cpp') diff --git a/Tests/Kernel/crash.cpp b/Tests/Kernel/crash.cpp index ad1759f978..5e8ce5b2c5 100644 --- a/Tests/Kernel/crash.cpp +++ b/Tests/Kernel/crash.cpp @@ -219,9 +219,11 @@ int main(int argc, char** argv) #if ARCH(I386) asm volatile("mov %%eax, %%esp" ::"a"(bad_esp)); asm volatile("pushl $0"); -#else +#elif ARCH(X86_64) asm volatile("movq %%rax, %%rsp" ::"a"(bad_esp)); asm volatile("pushq $0"); +#else +# error Unknown architecture #endif return Crash::Failure::DidNotCrash; -- cgit v1.2.3