mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
Tests+Userland: Prefer using __builtin_trap() instead of UD2
This way we don't have to hard-code per-architecture instructions.
This commit is contained in:
parent
7a8206197e
commit
dadf656dc9
3 changed files with 5 additions and 4 deletions
|
@ -15,7 +15,7 @@ int main(int, char**)
|
|||
pthread_create(
|
||||
&tid, nullptr, [](void*) -> void* {
|
||||
sleep(1);
|
||||
asm volatile("ud2");
|
||||
__builtin_trap();
|
||||
return nullptr;
|
||||
},
|
||||
nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue