Skip to content

Commit

Permalink
Add verbose print for set_robust_list
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Jul 10, 2024
1 parent 481289d commit 46c56d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/libriscv/posix/threads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ void Machine<W>::setup_posix_threads()
// set_robust_list
this->install_syscall_handler(99,
[] (Machine<W>& machine) {
address_t addr = machine.template sysarg<address_type<W>> (0);
THPRINT(machine,
">>> set_robust_list(0x%lX) = 0\n", (long)addr);
//machine.threads().get_thread()->robust_list_head = addr;
(void)addr;
machine.set_result(0);
});
// sched_yield
Expand Down

0 comments on commit 46c56d6

Please sign in to comment.