diff options
author | marcel <marcel@FreeBSD.org> | 2008-09-14 16:07:21 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2008-09-14 16:07:21 +0000 |
commit | ead754945e1303f4902bb9c1d2f3da9dcc13c967 (patch) | |
tree | 02668a21719febb89d083b97a83b079abb56473a /lib/libthr | |
parent | ae2f507eb0c3fb503f9f2b78128db903aceeabc1 (diff) | |
download | FreeBSD-src-ead754945e1303f4902bb9c1d2f3da9dcc13c967.zip FreeBSD-src-ead754945e1303f4902bb9c1d2f3da9dcc13c967.tar.gz |
Allow psaddr_t to be widened by using thr_pread_{int,long,ptr},
where critical. Some places still use ps_pread/ps_pwrite directly,
but only need changed when byte-order comes into the picture.
Also, change th_p in td_event_msg_t from a pointer type to
psaddr_t, so that events also work when psaddr_t is widened.
Diffstat (limited to 'lib/libthr')
-rw-r--r-- | lib/libthr/thread/thr_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_event.c b/lib/libthr/thread/thr_event.c index cdab9d7..716d21e 100644 --- a/lib/libthr/thread/thr_event.c +++ b/lib/libthr/thread/thr_event.c @@ -42,7 +42,7 @@ void _thr_report_creation(struct pthread *curthread, struct pthread *newthread) { curthread->event_buf.event = TD_CREATE; - curthread->event_buf.th_p = (td_thrhandle_t *)newthread; + curthread->event_buf.th_p = (uintptr_t)newthread; curthread->event_buf.data = 0; THR_UMUTEX_LOCK(curthread, &_thr_event_lock); _thread_last_event = curthread; @@ -55,7 +55,7 @@ void _thr_report_death(struct pthread *curthread) { curthread->event_buf.event = TD_DEATH; - curthread->event_buf.th_p = (td_thrhandle_t *)curthread; + curthread->event_buf.th_p = (uintptr_t)curthread; curthread->event_buf.data = 0; THR_UMUTEX_LOCK(curthread, &_thr_event_lock); _thread_last_event = curthread; |