mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 04:54:41 +08:00
ecba97d4aa
UML makefiles sanitized: - number of generated headers reduced to 2 (from user-offsets.c and kernel-offsets.c resp.). The rest is made constant and simply includes those two. - mk_... helpers are gone now that we don't need to generate these headers - arch/um/include2 removed since everything under arch/um/include/sysdep is constant now and symlink can point straight to source tree. - dependencies seriously simplified. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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
|