mirror of https://gitee.com/openkylin/linux.git
10 lines
227 B
C
10 lines
227 B
C
|
#ifndef __TASK_H
|
||
|
#define __TASK_H
|
||
|
|
||
|
#include <kern_constants.h>
|
||
|
|
||
|
#define TASK_REGS(task) ((union uml_pt_regs *) &(((char *) (task))[HOST_TASK_REGS]))
|
||
|
#define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID]))
|
||
|
|
||
|
#endif
|