diff options
Diffstat (limited to 'freebsd/sys/sys')
-rw-r--r-- | freebsd/sys/sys/pcpu.h | 5 | ||||
-rw-r--r-- | freebsd/sys/sys/proc.h | 9 |
2 files changed, 5 insertions, 9 deletions
diff --git a/freebsd/sys/sys/pcpu.h b/freebsd/sys/sys/pcpu.h index e0eb23f4..b3bbb16a 100644 --- a/freebsd/sys/sys/pcpu.h +++ b/freebsd/sys/sys/pcpu.h @@ -201,11 +201,6 @@ SLIST_HEAD(cpuhead, pcpu); extern struct cpuhead cpuhead; extern struct pcpu *cpuid_to_pcpu[MAXCPU]; -#ifdef __rtems__ -struct thread *rtems_get_curthread(void); -#define curthread rtems_get_curthread() -#endif - #define curcpu PCPU_GET(cpuid) #define curproc (curthread->td_proc) #ifndef curthread diff --git a/freebsd/sys/sys/proc.h b/freebsd/sys/sys/proc.h index cd10421e..7bf640c7 100644 --- a/freebsd/sys/sys/proc.h +++ b/freebsd/sys/sys/proc.h @@ -198,6 +198,11 @@ struct rusage_ext { * Thread context. Processes may have multiple threads. */ struct thread { +#ifdef __rtems__ + rtems_chain_node td_node; + Thread_Control *td_thread; + char td_name [16]; +#endif /* __rtems__ */ #ifndef __rtems__ struct mtx *volatile td_lock; /* replaces sched lock */ #endif /* __rtems__ */ @@ -314,10 +319,6 @@ struct thread { const char *td_vnet_lpush; /* (k) Debugging vnet push / pop. */ struct rusage_ext td_rux; /* (t) Internal rusage information. */ struct vm_map_entry *td_map_def_user; /* (k) Deferred entries. */ -#else /* __rtems__ */ - rtems_chain_node td_node; - rtems_id td_id; - char td_name [16]; #endif /* __rtems__ */ }; |