diff options
Diffstat (limited to 'include/asm-blackfin')
-rw-r--r-- | include/asm-blackfin/ide.h | 27 | ||||
-rw-r--r-- | include/asm-blackfin/kvm.h | 6 | ||||
-rw-r--r-- | include/asm-blackfin/page.h | 3 | ||||
-rw-r--r-- | include/asm-blackfin/ptrace.h | 6 | ||||
-rw-r--r-- | include/asm-blackfin/semaphore.h | 1 | ||||
-rw-r--r-- | include/asm-blackfin/thread_info.h | 5 |
6 files changed, 5 insertions, 43 deletions
diff --git a/include/asm-blackfin/ide.h b/include/asm-blackfin/ide.h deleted file mode 100644 index 5b88de115bf4..000000000000 --- a/include/asm-blackfin/ide.h +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | |||
3 | /* | ||
4 | * linux/include/asm-blackfin/ide.h | ||
5 | * | ||
6 | * Copyright (C) 1994-1996 Linus Torvalds & authors | ||
7 | * Copyright (C) 2001 Lineo Inc., davidm@snapgear.com | ||
8 | * Copyright (C) 2002 Greg Ungerer (gerg@snapgear.com) | ||
9 | * Copyright (C) 2002 Yoshinori Sato (ysato@users.sourceforge.jp) | ||
10 | * Copyright (C) 2005 Hennerich Michael (hennerich@blackfin.uclinux.org) | ||
11 | */ | ||
12 | |||
13 | /****************************************************************************/ | ||
14 | #ifndef _BLACKFIN_IDE_H | ||
15 | #define _BLACKFIN_IDE_H | ||
16 | /****************************************************************************/ | ||
17 | #ifdef __KERNEL__ | ||
18 | /****************************************************************************/ | ||
19 | |||
20 | #define MAX_HWIFS 1 | ||
21 | |||
22 | #include <asm-generic/ide_iops.h> | ||
23 | |||
24 | /****************************************************************************/ | ||
25 | #endif /* __KERNEL__ */ | ||
26 | #endif /* _BLACKFIN_IDE_H */ | ||
27 | /****************************************************************************/ | ||
diff --git a/include/asm-blackfin/kvm.h b/include/asm-blackfin/kvm.h deleted file mode 100644 index e3477d77c014..000000000000 --- a/include/asm-blackfin/kvm.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #ifndef __LINUX_KVM_BLACKFIN_H | ||
2 | #define __LINUX_KVM_BLACKFIN_H | ||
3 | |||
4 | /* blackfin does not support KVM */ | ||
5 | |||
6 | #endif | ||
diff --git a/include/asm-blackfin/page.h b/include/asm-blackfin/page.h index c7db0220fbd6..344f6a8c1f22 100644 --- a/include/asm-blackfin/page.h +++ b/include/asm-blackfin/page.h | |||
@@ -51,9 +51,6 @@ typedef struct page *pgtable_t; | |||
51 | #define __pgd(x) ((pgd_t) { (x) } ) | 51 | #define __pgd(x) ((pgd_t) { (x) } ) |
52 | #define __pgprot(x) ((pgprot_t) { (x) } ) | 52 | #define __pgprot(x) ((pgprot_t) { (x) } ) |
53 | 53 | ||
54 | /* to align the pointer to the (next) page boundary */ | ||
55 | #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) | ||
56 | |||
57 | extern unsigned long memory_start; | 54 | extern unsigned long memory_start; |
58 | extern unsigned long memory_end; | 55 | extern unsigned long memory_end; |
59 | 56 | ||
diff --git a/include/asm-blackfin/ptrace.h b/include/asm-blackfin/ptrace.h index b8346cd3a6f6..a45a80e54adc 100644 --- a/include/asm-blackfin/ptrace.h +++ b/include/asm-blackfin/ptrace.h | |||
@@ -83,14 +83,14 @@ struct pt_regs { | |||
83 | #define PTRACE_GETREGS 12 | 83 | #define PTRACE_GETREGS 12 |
84 | #define PTRACE_SETREGS 13 /* ptrace signal */ | 84 | #define PTRACE_SETREGS 13 /* ptrace signal */ |
85 | 85 | ||
86 | #ifdef CONFIG_BINFMT_ELF_FDPIC | ||
87 | #define PTRACE_GETFDPIC 31 | 86 | #define PTRACE_GETFDPIC 31 |
88 | #define PTRACE_GETFDPIC_EXEC 0 | 87 | #define PTRACE_GETFDPIC_EXEC 0 |
89 | #define PTRACE_GETFDPIC_INTERP 1 | 88 | #define PTRACE_GETFDPIC_INTERP 1 |
90 | #endif | ||
91 | 89 | ||
92 | #define PS_S (0x0002) | 90 | #define PS_S (0x0002) |
93 | 91 | ||
92 | #ifdef __KERNEL__ | ||
93 | |||
94 | /* user_mode returns true if only one bit is set in IPEND, other than the | 94 | /* user_mode returns true if only one bit is set in IPEND, other than the |
95 | master interrupt enable. */ | 95 | master interrupt enable. */ |
96 | #define user_mode(regs) (!(((regs)->ipend & ~0x10) & (((regs)->ipend & ~0x10) - 1))) | 96 | #define user_mode(regs) (!(((regs)->ipend & ~0x10) & (((regs)->ipend & ~0x10) - 1))) |
@@ -98,6 +98,8 @@ struct pt_regs { | |||
98 | #define profile_pc(regs) instruction_pointer(regs) | 98 | #define profile_pc(regs) instruction_pointer(regs) |
99 | extern void show_regs(struct pt_regs *); | 99 | extern void show_regs(struct pt_regs *); |
100 | 100 | ||
101 | #endif /* __KERNEL__ */ | ||
102 | |||
101 | #endif /* __ASSEMBLY__ */ | 103 | #endif /* __ASSEMBLY__ */ |
102 | 104 | ||
103 | /* | 105 | /* |
diff --git a/include/asm-blackfin/semaphore.h b/include/asm-blackfin/semaphore.h deleted file mode 100644 index d9b2034ed1d2..000000000000 --- a/include/asm-blackfin/semaphore.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | #include <linux/semaphore.h> | ||
diff --git a/include/asm-blackfin/thread_info.h b/include/asm-blackfin/thread_info.h index bc2fe5accf20..642769329d12 100644 --- a/include/asm-blackfin/thread_info.h +++ b/include/asm-blackfin/thread_info.h | |||
@@ -42,6 +42,7 @@ | |||
42 | /* | 42 | /* |
43 | * Size of kernel stack for each process. This must be a power of 2... | 43 | * Size of kernel stack for each process. This must be a power of 2... |
44 | */ | 44 | */ |
45 | #define THREAD_SIZE_ORDER 1 | ||
45 | #define THREAD_SIZE 8192 /* 2 pages */ | 46 | #define THREAD_SIZE 8192 /* 2 pages */ |
46 | 47 | ||
47 | #ifndef __ASSEMBLY__ | 48 | #ifndef __ASSEMBLY__ |
@@ -94,10 +95,6 @@ static inline struct thread_info *current_thread_info(void) | |||
94 | return (struct thread_info *)((long)ti & ~((long)THREAD_SIZE-1)); | 95 | return (struct thread_info *)((long)ti & ~((long)THREAD_SIZE-1)); |
95 | } | 96 | } |
96 | 97 | ||
97 | /* thread information allocation */ | ||
98 | #define alloc_thread_info(tsk) ((struct thread_info *) \ | ||
99 | __get_free_pages(GFP_KERNEL, 1)) | ||
100 | #define free_thread_info(ti) free_pages((unsigned long) (ti), 1) | ||
101 | #endif /* __ASSEMBLY__ */ | 98 | #endif /* __ASSEMBLY__ */ |
102 | 99 | ||
103 | /* | 100 | /* |