X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sparc64%2Fthread_info.h;h=517caaba1c877a4f2df14dcc4642371810ba600a;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=e05da3669016affeac262ec2ce6b7a107deb96a7;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-sparc64/thread_info.h b/include/asm-sparc64/thread_info.h index e05da3669..517caaba1 100644 --- a/include/asm-sparc64/thread_info.h +++ b/include/asm-sparc64/thread_info.h @@ -47,6 +47,7 @@ struct thread_info { struct pt_regs *kregs; struct exec_domain *exec_domain; int preempt_count; + int __pad; unsigned long *utraps; @@ -56,7 +57,8 @@ struct thread_info { unsigned long gsr[7]; unsigned long xfsr[7]; - __u64 *user_cntd0, *user_cntd1; + __u64 __user *user_cntd0; + __u64 __user *user_cntd1; __u64 kernel_cntd0, kernel_cntd1; __u64 pcr_reg; @@ -100,10 +102,11 @@ struct thread_info { #define TI_FPREGS 0x00000500 /* We embed this in the uppermost byte of thread_info->flags */ -#define FAULT_CODE_WRITE 0x01 /* Write access, implies D-TLB */ -#define FAULT_CODE_DTLB 0x02 /* Miss happened in D-TLB */ -#define FAULT_CODE_ITLB 0x04 /* Miss happened in I-TLB */ -#define FAULT_CODE_WINFIXUP 0x08 /* Miss happened during spill/fill */ +#define FAULT_CODE_WRITE 0x01 /* Write access, implies D-TLB */ +#define FAULT_CODE_DTLB 0x02 /* Miss happened in D-TLB */ +#define FAULT_CODE_ITLB 0x04 /* Miss happened in I-TLB */ +#define FAULT_CODE_WINFIXUP 0x08 /* Miss happened during spill/fill */ +#define FAULT_CODE_BLKCOMMIT 0x10 /* Use blk-commit ASI in copy_page */ #if PAGE_SHIFT == 13 #define THREAD_SIZE (2*PAGE_SIZE) @@ -217,10 +220,7 @@ register struct thread_info *current_thread_info_reg asm("g6"); #define TIF_NEWSIGNALS 6 /* wants new-style signals */ #define TIF_32BIT 7 /* 32-bit binary */ #define TIF_NEWCHILD 8 /* just-spawned child process */ - -/* XXX Make this one FAULT_CODE_BLKCOMMIT XXX */ -#define TIF_BLKCOMMIT 9 /* use ASI_BLK_COMMIT_* in copy_user_page */ - +/* TIF_* value 9 is available */ #define TIF_POLLING_NRFLAG 10 #define TIF_SYSCALL_SUCCESS 11 /* NOTE: Thread flags >= 12 should be ones we have no interest @@ -228,6 +228,7 @@ register struct thread_info *current_thread_info_reg asm("g6"); * an immediate value in instructions such as andcc. */ #define TIF_ABI_PENDING 12 +#define TIF_MEMDIE 13 #define _TIF_SYSCALL_TRACE (1<