mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:11:20 +08:00
@@ -66,6 +66,8 @@ __FBSDID("$FreeBSD$");
|
||||
#endif
|
||||
#include <machine/rtems-bsd-thread.h>
|
||||
#define RTEMSBSD_SWI_WAKEUP_EVENT RTEMS_EVENT_31
|
||||
#undef ticks
|
||||
#include <rtems/score/threadimpl.h>
|
||||
#endif /* __rtems__ */
|
||||
#include <machine/stdarg.h>
|
||||
#ifdef DDB
|
||||
@@ -195,7 +197,11 @@ ithread_update(struct intr_thread *ithd)
|
||||
pri = TAILQ_FIRST(&ie->ie_handlers)->ih_pri;
|
||||
|
||||
/* Update name and priority. */
|
||||
#ifndef __rtems__
|
||||
strlcpy(td->td_name, ie->ie_fullname, sizeof(td->td_name));
|
||||
#else /* __rtems__ */
|
||||
_Thread_Set_name(td->td_thread, ie->ie_fullname);
|
||||
#endif /* __rtems__ */
|
||||
#ifdef KTR
|
||||
sched_clear_tdname(td);
|
||||
#endif
|
||||
|
@@ -223,7 +223,6 @@ struct thread {
|
||||
#ifdef __rtems__
|
||||
Thread_Control *td_thread;
|
||||
struct rtems_bsd_program_control *td_prog_ctrl;
|
||||
char td_name[32];
|
||||
#endif /* __rtems__ */
|
||||
#ifndef __rtems__
|
||||
struct mtx *volatile td_lock; /* replaces sched lock */
|
||||
|
Reference in New Issue
Block a user