mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
Kernel: Fixed argument passing for profiling_enable syscall
Arguments larger than 32bit need to be passed as a pointer on a 32bit architectures. sys$profiling_enable has u64 event_mask argument, which means that it needs to be passed as an pointer. Previously upper 32bits were filled by garbage.
This commit is contained in:
parent
0f2e18403c
commit
895a050e04
4 changed files with 9 additions and 4 deletions
|
@ -22,7 +22,7 @@ int disown(pid_t pid)
|
|||
|
||||
int profiling_enable(pid_t pid, uint64_t event_mask)
|
||||
{
|
||||
int rc = syscall(SC_profiling_enable, pid, event_mask);
|
||||
int rc = syscall(SC_profiling_enable, pid, &event_mask);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue