mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:57:44 +00:00
Everywhere: Make the codebase more architecture aware
This commit is contained in:
parent
6c4b5775e1
commit
97cc33ca47
22 changed files with 108 additions and 36 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue