Add the const qualifier to the prgregset_t argument for the *setregs*
functions.
This commit is contained in:
parent
53567f23d2
commit
f046a75fc6
@ -267,7 +267,7 @@ td_err_e td_thr_getgregs(const td_thrhandle_t *, prgregset_t);
|
||||
td_err_e td_thr_getxregs(const td_thrhandle_t *, void *);
|
||||
td_err_e td_thr_getxregsize(const td_thrhandle_t *, int *);
|
||||
td_err_e td_thr_setfpregs(const td_thrhandle_t *, const prfpregset_t *);
|
||||
td_err_e td_thr_setgregs(const td_thrhandle_t *, prgregset_t);
|
||||
td_err_e td_thr_setgregs(const td_thrhandle_t *, const prgregset_t);
|
||||
td_err_e td_thr_setxregs(const td_thrhandle_t *, const void *);
|
||||
td_err_e td_thr_event_enable(const td_thrhandle_t *, int);
|
||||
td_err_e td_thr_set_event(const td_thrhandle_t *, td_thr_events_t *);
|
||||
|
@ -64,7 +64,7 @@ struct ta_ops {
|
||||
td_err_e (*to_thr_getxregs)(const td_thrhandle_t *, void *);
|
||||
td_err_e (*to_thr_getxregsize)(const td_thrhandle_t *, int *);
|
||||
td_err_e (*to_thr_setfpregs)(const td_thrhandle_t *, const prfpregset_t *);
|
||||
td_err_e (*to_thr_setgregs)(const td_thrhandle_t *, prgregset_t);
|
||||
td_err_e (*to_thr_setgregs)(const td_thrhandle_t *, const prgregset_t);
|
||||
td_err_e (*to_thr_setxregs)(const td_thrhandle_t *, const void *);
|
||||
td_err_e (*to_thr_event_enable)(const td_thrhandle_t *, int);
|
||||
td_err_e (*to_thr_set_event)(const td_thrhandle_t *, td_thr_events_t *);
|
||||
|
@ -662,7 +662,7 @@ pt_thr_setfpregs(const td_thrhandle_t *th, const prfpregset_t *fpregs)
|
||||
}
|
||||
|
||||
static td_err_e
|
||||
pt_thr_setgregs(const td_thrhandle_t *th, prgregset_t gregs)
|
||||
pt_thr_setgregs(const td_thrhandle_t *th, const prgregset_t gregs)
|
||||
{
|
||||
struct kse_thr_mailbox tmbx;
|
||||
pt_thragent_t *ta = (pt_thragent_t *)th->th_ta_p;
|
||||
|
@ -232,7 +232,7 @@ td_thr_setfpregs(const td_thrhandle_t *th, const prfpregset_t *fpregs)
|
||||
}
|
||||
|
||||
td_err_e
|
||||
td_thr_setgregs(const td_thrhandle_t *th, prgregset_t gregs)
|
||||
td_thr_setgregs(const td_thrhandle_t *th, const prgregset_t gregs)
|
||||
{
|
||||
td_thragent_t *ta = th->th_ta_p;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user