diff options
author | Timon Kruiper <timonkruiper@gmail.com> | 2023-01-25 17:09:29 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-27 20:47:08 +0000 |
commit | 12322670cba4ff85d5b3e0c1b15d32c5fede1422 (patch) | |
tree | 4328c853a3143348654377fe013d0270402d06c5 /Kernel/Process.cpp | |
parent | 5ffd53e2f22e0c99a99acc900e64bc64b7d6114d (diff) | |
download | serenity-12322670cba4ff85d5b3e0c1b15d32c5fede1422.zip |
Kernel: Use InterruptsState abstraction in execve.cpp
This was using the x86_64 specific cpu_flags abstraction, which is not
compatible with aarch64.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index dc77437443..c470168a84 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -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(); |