1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

Kernel: Use InterruptsState abstraction in execve.cpp

This was using the x86_64 specific cpu_flags abstraction, which is not
compatible with aarch64.
This commit is contained in:
Timon Kruiper 2023-01-25 17:09:29 +01:00 committed by Linus Groh
parent 5ffd53e2f2
commit 12322670cb
3 changed files with 21 additions and 15 deletions

View file

@ -246,8 +246,8 @@ ErrorOr<NonnullLockRefPtr<Process>> Process::try_create_user_process(LockRefPtr<
}));
Thread* new_main_thread = nullptr;
u32 prev_flags = 0;
if (auto result = process->exec(move(path_string), move(arguments), move(environment), new_main_thread, prev_flags); result.is_error()) {
InterruptsState previous_interrupts_state = InterruptsState::Enabled;
if (auto result = process->exec(move(path_string), move(arguments), move(environment), new_main_thread, previous_interrupts_state); result.is_error()) {
dbgln("Failed to exec {}: {}", path, result.error());
first_thread = nullptr;
return result.release_error();