diff options
Diffstat (limited to 'include/asm-sh64')
-rw-r--r-- | include/asm-sh64/keyboard.h | 4 | ||||
-rw-r--r-- | include/asm-sh64/page.h | 3 | ||||
-rw-r--r-- | include/asm-sh64/pgtable.h | 6 | ||||
-rw-r--r-- | include/asm-sh64/shmparam.h | 16 | ||||
-rw-r--r-- | include/asm-sh64/signal.h | 1 | ||||
-rw-r--r-- | include/asm-sh64/timex.h | 3 | ||||
-rw-r--r-- | include/asm-sh64/unistd.h | 6 | ||||
-rw-r--r-- | include/asm-sh64/user.h | 1 |
8 files changed, 13 insertions, 27 deletions
diff --git a/include/asm-sh64/keyboard.h b/include/asm-sh64/keyboard.h index 1fab96d792bf..0b01c3beb2f8 100644 --- a/include/asm-sh64/keyboard.h +++ b/include/asm-sh64/keyboard.h | |||
@@ -30,7 +30,6 @@ extern int pckbd_translate(unsigned char scancode, unsigned char *keycode, | |||
30 | extern char pckbd_unexpected_up(unsigned char keycode); | 30 | extern char pckbd_unexpected_up(unsigned char keycode); |
31 | extern void pckbd_leds(unsigned char leds); | 31 | extern void pckbd_leds(unsigned char leds); |
32 | extern void pckbd_init_hw(void); | 32 | extern void pckbd_init_hw(void); |
33 | extern unsigned char pckbd_sysrq_xlate[128]; | ||
34 | 33 | ||
35 | #define kbd_setkeycode pckbd_setkeycode | 34 | #define kbd_setkeycode pckbd_setkeycode |
36 | #define kbd_getkeycode pckbd_getkeycode | 35 | #define kbd_getkeycode pckbd_getkeycode |
@@ -38,9 +37,6 @@ extern unsigned char pckbd_sysrq_xlate[128]; | |||
38 | #define kbd_unexpected_up pckbd_unexpected_up | 37 | #define kbd_unexpected_up pckbd_unexpected_up |
39 | #define kbd_leds pckbd_leds | 38 | #define kbd_leds pckbd_leds |
40 | #define kbd_init_hw pckbd_init_hw | 39 | #define kbd_init_hw pckbd_init_hw |
41 | #define kbd_sysrq_xlate pckbd_sysrq_xlate | ||
42 | |||
43 | #define SYSRQ_KEY 0x54 | ||
44 | 40 | ||
45 | /* resource allocation */ | 41 | /* resource allocation */ |
46 | #define kbd_request_region() | 42 | #define kbd_request_region() |
diff --git a/include/asm-sh64/page.h b/include/asm-sh64/page.h index 34fb34754ae6..472089aefc60 100644 --- a/include/asm-sh64/page.h +++ b/include/asm-sh64/page.h | |||
@@ -112,9 +112,8 @@ typedef struct { unsigned long pgprot; } pgprot_t; | |||
112 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ | 112 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ |
113 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 113 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
114 | 114 | ||
115 | #endif /* __KERNEL__ */ | ||
116 | |||
117 | #include <asm-generic/memory_model.h> | 115 | #include <asm-generic/memory_model.h> |
118 | #include <asm-generic/page.h> | 116 | #include <asm-generic/page.h> |
119 | 117 | ||
118 | #endif /* __KERNEL__ */ | ||
120 | #endif /* __ASM_SH64_PAGE_H */ | 119 | #endif /* __ASM_SH64_PAGE_H */ |
diff --git a/include/asm-sh64/pgtable.h b/include/asm-sh64/pgtable.h index 54c7821893f5..6b97c4cb1d64 100644 --- a/include/asm-sh64/pgtable.h +++ b/include/asm-sh64/pgtable.h | |||
@@ -190,7 +190,9 @@ static inline int pgd_bad(pgd_t pgd) { return 0; } | |||
190 | #endif | 190 | #endif |
191 | 191 | ||
192 | 192 | ||
193 | #define pgd_page(pgd_entry) ((unsigned long) (pgd_val(pgd_entry) & PAGE_MASK)) | 193 | #define pgd_page_vaddr(pgd_entry) ((unsigned long) (pgd_val(pgd_entry) & PAGE_MASK)) |
194 | #define pgd_page(pgd) (virt_to_page(pgd_val(pgd))) | ||
195 | |||
194 | 196 | ||
195 | /* | 197 | /* |
196 | * PMD defines. Middle level. | 198 | * PMD defines. Middle level. |
@@ -219,7 +221,7 @@ static inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address) | |||
219 | #define pmd_none(pmd_entry) (pmd_val((pmd_entry)) == _PMD_EMPTY) | 221 | #define pmd_none(pmd_entry) (pmd_val((pmd_entry)) == _PMD_EMPTY) |
220 | #define pmd_bad(pmd_entry) ((pmd_val(pmd_entry) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) | 222 | #define pmd_bad(pmd_entry) ((pmd_val(pmd_entry) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) |
221 | 223 | ||
222 | #define pmd_page_kernel(pmd_entry) \ | 224 | #define pmd_page_vaddr(pmd_entry) \ |
223 | ((unsigned long) __va(pmd_val(pmd_entry) & PAGE_MASK)) | 225 | ((unsigned long) __va(pmd_val(pmd_entry) & PAGE_MASK)) |
224 | 226 | ||
225 | #define pmd_page(pmd) \ | 227 | #define pmd_page(pmd) \ |
diff --git a/include/asm-sh64/shmparam.h b/include/asm-sh64/shmparam.h index d3a99a4dc0e3..1bb820c833ee 100644 --- a/include/asm-sh64/shmparam.h +++ b/include/asm-sh64/shmparam.h | |||
@@ -2,19 +2,11 @@ | |||
2 | #define __ASM_SH64_SHMPARAM_H | 2 | #define __ASM_SH64_SHMPARAM_H |
3 | 3 | ||
4 | /* | 4 | /* |
5 | * This file is subject to the terms and conditions of the GNU General Public | 5 | * Set this to a sensible safe default, we'll work out the specifics for the |
6 | * License. See the file "COPYING" in the main directory of this archive | 6 | * align mask from the cache descriptor at run-time. |
7 | * for more details. | ||
8 | * | ||
9 | * include/asm-sh64/shmparam.h | ||
10 | * | ||
11 | * Copyright (C) 2000, 2001 Paolo Alberelli | ||
12 | * | ||
13 | */ | 7 | */ |
8 | #define SHMLBA 0x4000 | ||
14 | 9 | ||
15 | #include <asm/cache.h> | 10 | #define __ARCH_FORCE_SHMLBA |
16 | |||
17 | /* attach addr a multiple of this */ | ||
18 | #define SHMLBA (cpu_data->dcache.sets * L1_CACHE_BYTES) | ||
19 | 11 | ||
20 | #endif /* __ASM_SH64_SHMPARAM_H */ | 12 | #endif /* __ASM_SH64_SHMPARAM_H */ |
diff --git a/include/asm-sh64/signal.h b/include/asm-sh64/signal.h index a5a28203cb3b..244e134730d9 100644 --- a/include/asm-sh64/signal.h +++ b/include/asm-sh64/signal.h | |||
@@ -13,7 +13,6 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <linux/types.h> | 15 | #include <linux/types.h> |
16 | #include <asm/processor.h> | ||
17 | 16 | ||
18 | /* Avoid too many header ordering problems. */ | 17 | /* Avoid too many header ordering problems. */ |
19 | struct siginfo; | 18 | struct siginfo; |
diff --git a/include/asm-sh64/timex.h b/include/asm-sh64/timex.h index af0b79269661..163e2b62fe27 100644 --- a/include/asm-sh64/timex.h +++ b/include/asm-sh64/timex.h | |||
@@ -17,9 +17,6 @@ | |||
17 | 17 | ||
18 | #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */ | 18 | #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */ |
19 | #define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */ | 19 | #define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */ |
20 | #define FINETUNE ((((((long)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \ | ||
21 | (1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \ | ||
22 | << (SHIFT_SCALE-SHIFT_HZ)) / HZ) | ||
23 | 20 | ||
24 | typedef unsigned long cycles_t; | 21 | typedef unsigned long cycles_t; |
25 | 22 | ||
diff --git a/include/asm-sh64/unistd.h b/include/asm-sh64/unistd.h index 9a1590fffc15..c113566bef33 100644 --- a/include/asm-sh64/unistd.h +++ b/include/asm-sh64/unistd.h | |||
@@ -347,8 +347,10 @@ | |||
347 | #ifdef __KERNEL__ | 347 | #ifdef __KERNEL__ |
348 | 348 | ||
349 | #define NR_syscalls 321 | 349 | #define NR_syscalls 321 |
350 | #include <linux/err.h> | ||
350 | 351 | ||
351 | /* user-visible error numbers are in the range -1 - -125: see <asm-sh64/errno.h> */ | 352 | /* user-visible error numbers are in the range -1 - -MAX_ERRNO: |
353 | * see <asm-sh64/errno.h> */ | ||
352 | 354 | ||
353 | #define __syscall_return(type, res) \ | 355 | #define __syscall_return(type, res) \ |
354 | do { \ | 356 | do { \ |
@@ -358,7 +360,7 @@ do { \ | |||
358 | ** life easier in the system call epilogue (see entry.S) \ | 360 | ** life easier in the system call epilogue (see entry.S) \ |
359 | */ \ | 361 | */ \ |
360 | register unsigned long __sr2 __asm__ ("r2") = res; \ | 362 | register unsigned long __sr2 __asm__ ("r2") = res; \ |
361 | if ((unsigned long)(res) >= (unsigned long)(-125)) { \ | 363 | if ((unsigned long)(res) >= (unsigned long)(-MAX_ERRNO)) { \ |
362 | errno = -(res); \ | 364 | errno = -(res); \ |
363 | __sr2 = -1; \ | 365 | __sr2 = -1; \ |
364 | } \ | 366 | } \ |
diff --git a/include/asm-sh64/user.h b/include/asm-sh64/user.h index 8f32f39a8ca9..eb3b33edd73e 100644 --- a/include/asm-sh64/user.h +++ b/include/asm-sh64/user.h | |||
@@ -13,7 +13,6 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <linux/types.h> | 15 | #include <linux/types.h> |
16 | #include <asm/processor.h> | ||
17 | #include <asm/ptrace.h> | 16 | #include <asm/ptrace.h> |
18 | #include <asm/page.h> | 17 | #include <asm/page.h> |
19 | 18 | ||