thread.h 290 B

1234567891011
  1. #ifndef __UM_THREAD_H
  2. #define __UM_THREAD_H
  3. #include <kern_constants.h>
  4. #define TASK_DEBUGREGS(task) ((unsigned long *) &(((char *) (task))[HOST_TASK_DEBUGREGS]))
  5. #ifdef UML_CONFIG_MODE_TT
  6. #define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[HOST_TASK_EXTERN_PID]))
  7. #endif
  8. #endif