aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-02-11 14:52:22 -0500
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-02-11 14:52:22 -0500
commit9049a11de73d3ecc623f1903100d099f82ede56c (patch)
treec03d130d58168e337a66fe999682452b7a02b42b /include/linux/sched.h
parentc47c1b1f3a9d6973108020df1dcab7604f7774dd (diff)
parente4d0407185cdbdcfd99fc23bde2e5454bbc46329 (diff)
Merge commit 'remotes/tip/x86/paravirt' into x86/untangle2
* commit 'remotes/tip/x86/paravirt': (175 commits) xen: use direct ops on 64-bit xen: make direct versions of irq_enable/disable/save/restore to common code xen: setup percpu data pointers xen: fix 32-bit build resulting from mmu move x86/paravirt: return full 64-bit result x86, percpu: fix kexec with vmlinux x86/vmi: fix interrupt enable/disable/save/restore calling convention. x86/paravirt: don't restore second return reg xen: setup percpu data pointers x86: split loading percpu segments from loading gdt x86: pass in cpu number to switch_to_new_gdt() x86: UV fix uv_flush_send_and_wait() x86/paravirt: fix missing callee-save call on pud_val x86/paravirt: use callee-saved convention for pte_val/make_pte/etc x86/paravirt: implement PVOP_CALL macros for callee-save functions x86/paravirt: add register-saving thunks to reduce caller register pressure x86/paravirt: selectively save/restore regs around pvops calls x86: fix paravirt clobber in entry_64.S x86/pvops: add a paravirt_ident functions to allow special patching xen: move remaining mmu-related stuff into mmu.c ... Conflicts: arch/x86/mach-voyager/voyager_smp.c arch/x86/mm/fault.c
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 2127e959e0f4..28b3f505f189 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1161,10 +1161,9 @@ struct task_struct {
1161 pid_t pid; 1161 pid_t pid;
1162 pid_t tgid; 1162 pid_t tgid;
1163 1163
1164#ifdef CONFIG_CC_STACKPROTECTOR
1165 /* Canary value for the -fstack-protector gcc feature */ 1164 /* Canary value for the -fstack-protector gcc feature */
1166 unsigned long stack_canary; 1165 unsigned long stack_canary;
1167#endif 1166
1168 /* 1167 /*
1169 * pointers to (original) parent process, youngest child, younger sibling, 1168 * pointers to (original) parent process, youngest child, younger sibling,
1170 * older sibling, respectively. (p->father can be replaced with 1169 * older sibling, respectively. (p->father can be replaced with
@@ -2070,6 +2069,19 @@ static inline int object_is_on_stack(void *obj)
2070 2069
2071extern void thread_info_cache_init(void); 2070extern void thread_info_cache_init(void);
2072 2071
2072#ifdef CONFIG_DEBUG_STACK_USAGE
2073static inline unsigned long stack_not_used(struct task_struct *p)
2074{
2075 unsigned long *n = end_of_stack(p);
2076
2077 do { /* Skip over canary */
2078 n++;
2079 } while (!*n);
2080
2081 return (unsigned long)n - (unsigned long)end_of_stack(p);
2082}
2083#endif
2084
2073/* set thread flags in other task's structures 2085/* set thread flags in other task's structures
2074 * - see asm/thread_info.h for TIF_xxxx flags available 2086 * - see asm/thread_info.h for TIF_xxxx flags available
2075 */ 2087 */