Skip to content

Commit

Permalink
Fixes a bug in syscall mon_reg_write mon_reg_read
Browse files Browse the repository at this point in the history
  • Loading branch information
HAKarlsson committed Nov 9, 2023
1 parent b51c1e6 commit 23d7925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/src/s3k/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ s3k_err_t s3k_try_mon_reg_read(s3k_cidx_t mon, s3k_pid_t pid, s3k_reg_t reg,
.mon_reg = {mon, pid, reg}
};
s3k_ret_t ret
= do_ecall(S3K_SYS_MON_REG_READ, args, sizeof(args.mon_state));
= do_ecall(S3K_SYS_MON_REG_READ, args, sizeof(args.mon_reg));
*val = ret.val;
return ret.err;
}
Expand All @@ -464,7 +464,7 @@ s3k_err_t s3k_try_mon_reg_write(s3k_cidx_t mon, s3k_pid_t pid, s3k_reg_t reg,
.mon_reg = {mon, pid, reg, val}
};
s3k_ret_t ret
= do_ecall(S3K_SYS_MON_REG_WRITE, args, sizeof(args.mon_state));
= do_ecall(S3K_SYS_MON_REG_WRITE, args, sizeof(args.mon_reg));
return ret.err;
}

Expand Down

0 comments on commit 23d7925

Please sign in to comment.