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 /Tests/Kernel/crash.cpp | |
parent | 6c4b5775e1ac45a96d3b8c65b3e7fb93a6135d3d (diff) | |
download | serenity-97cc33ca47c21f21c13d0b386511f589b25b7998.zip |
Everywhere: Make the codebase more architecture aware
Diffstat (limited to 'Tests/Kernel/crash.cpp')
-rw-r--r-- | Tests/Kernel/crash.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; |