aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-05-11 01:22:30 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-11 11:29:33 -0400
commit57598fd7b31f6437874308a79ca23e51c74da59b (patch)
treeb81df1f04864611d23dbaae11343f3827f6e4aa7 /arch/um/include
parent22258d406f91d7f7ee8e58f18b3722d0647f6a9a (diff)
uml: remove task_protections
Replaced task_protections with stack_protections since they do the same thing, and task_protections was misnamed anyway. This needs THREAD_SIZE, so that's imported via common-offsets.h Also tidied up the code in the vicinity. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include')
-rw-r--r--arch/um/include/common-offsets.h2
-rw-r--r--arch/um/include/os.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/include/common-offsets.h b/arch/um/include/common-offsets.h
index 5593a8027083..541f4a8ca512 100644
--- a/arch/um/include/common-offsets.h
+++ b/arch/um/include/common-offsets.h
@@ -28,3 +28,5 @@ DEFINE(UM_NR_CPUS, NR_CPUS);
28 28
29/* For crypto assembler code. */ 29/* For crypto assembler code. */
30DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx)); 30DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx));
31
32DEFINE(UM_THREAD_SIZE, THREAD_SIZE);
diff --git a/arch/um/include/os.h b/arch/um/include/os.h
index 688d181b5f8a..4d9fb26387d5 100644
--- a/arch/um/include/os.h
+++ b/arch/um/include/os.h
@@ -272,7 +272,6 @@ extern void do_longjmp(void *p, int val);
272 272
273/* util.c */ 273/* util.c */
274extern void stack_protections(unsigned long address); 274extern void stack_protections(unsigned long address);
275extern void task_protections(unsigned long address);
276extern int raw(int fd); 275extern int raw(int fd);
277extern void setup_machinename(char *machine_out); 276extern void setup_machinename(char *machine_out);
278extern void setup_hostinfo(char *buf, int len); 277extern void setup_hostinfo(char *buf, int len);