1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

Userland: Prefer using ARCH() over __LP64__

This commit is contained in:
Gunnar Beutner 2021-07-13 15:50:19 +02:00 committed by Andreas Kling
parent de4ba1f39b
commit 4cf24c6ba2
5 changed files with 13 additions and 18 deletions

View file

@ -207,7 +207,7 @@ int main(int argc, char** argv)
return Crash::Failure::UnexpectedError;
u8* bad_esp = bad_stack + 2048;
#ifndef __LP64__
#if ARCH(I386)
asm volatile("mov %%eax, %%esp" ::"a"(bad_esp));
asm volatile("pushl $0");
#else