Print this page
XXX AVX procfs
@@ -1961,11 +1961,10 @@
#pragma weak td_thr_getxregsize = __td_thr_getxregsize
/* ARGSUSED */
td_err_e
__td_thr_getxregsize(td_thrhandle_t *th_p, int *xregsize)
{
-#if defined(__sparc)
struct ps_prochandle *ph_p;
td_err_e return_val;
if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
return (return_val);
@@ -1978,24 +1977,20 @@
return_val = TD_DBERR;
(void) ps_pcontinue(ph_p);
ph_unlock(th_p->th_ta_p);
return (return_val);
-#else /* __sparc */
- return (TD_NOXREGS);
-#endif /* __sparc */
}
/*
* Get a thread's extra state register set.
*/
#pragma weak td_thr_getxregs = __td_thr_getxregs
/* ARGSUSED */
td_err_e
__td_thr_getxregs(td_thrhandle_t *th_p, void *xregset)
{
-#if defined(__sparc)
struct ps_prochandle *ph_p;
td_err_e return_val;
if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
return (return_val);
@@ -2008,24 +2003,20 @@
return_val = TD_DBERR;
(void) ps_pcontinue(ph_p);
ph_unlock(th_p->th_ta_p);
return (return_val);
-#else /* __sparc */
- return (TD_NOXREGS);
-#endif /* __sparc */
}
/*
* Set a thread's extra state register set.
*/
#pragma weak td_thr_setxregs = __td_thr_setxregs
/* ARGSUSED */
td_err_e
__td_thr_setxregs(td_thrhandle_t *th_p, const void *xregset)
{
-#if defined(__sparc)
struct ps_prochandle *ph_p;
td_err_e return_val;
if ((ph_p = ph_lock_th(th_p, &return_val)) == NULL)
return (return_val);
@@ -2038,13 +2029,10 @@
return_val = TD_DBERR;
(void) ps_pcontinue(ph_p);
ph_unlock(th_p->th_ta_p);
return (return_val);
-#else /* __sparc */
- return (TD_NOXREGS);
-#endif /* __sparc */
}
struct searcher {
psaddr_t addr;
int status;