diff options
-rw-r--r-- | arch/frv/Makefile | 6 | ||||
-rw-r--r-- | arch/frv/kernel/vmlinux.lds.S | 1 | ||||
-rw-r--r-- | include/asm-frv/bug.h | 1 | ||||
-rw-r--r-- | include/asm-frv/dma-mapping.h | 2 | ||||
-rw-r--r-- | include/asm-frv/mc146818rtc.h | 16 | ||||
-rw-r--r-- | include/asm-frv/pci.h | 8 | ||||
-rw-r--r-- | include/asm-frv/pgtable.h | 5 | ||||
-rw-r--r-- | include/asm-frv/types.h | 1 | ||||
-rw-r--r-- | include/asm-frv/unistd.h | 2 | ||||
-rw-r--r-- | include/asm-frv/vga.h | 17 | ||||
-rw-r--r-- | include/asm-frv/xor.h | 1 |
11 files changed, 54 insertions, 6 deletions
diff --git a/arch/frv/Makefile b/arch/frv/Makefile index 54046d2386f5..90c0fb8d9dc3 100644 --- a/arch/frv/Makefile +++ b/arch/frv/Makefile | |||
@@ -109,10 +109,10 @@ bootstrap: | |||
109 | $(Q)$(MAKEBOOT) bootstrap | 109 | $(Q)$(MAKEBOOT) bootstrap |
110 | 110 | ||
111 | archmrproper: | 111 | archmrproper: |
112 | $(Q)$(MAKE) -C arch/frv/boot mrproper | 112 | $(Q)$(MAKE) $(build)=arch/frv/boot mrproper |
113 | 113 | ||
114 | archclean: | 114 | archclean: |
115 | $(Q)$(MAKE) -C arch/frv/boot clean | 115 | $(Q)$(MAKE) $(build)=arch/frv/boot clean |
116 | 116 | ||
117 | archdep: scripts/mkdep symlinks | 117 | archdep: scripts/mkdep symlinks |
118 | $(Q)$(MAKE) -C arch/frv/boot dep | 118 | $(Q)$(MAKE) $(build)=arch/frv/boot dep |
diff --git a/arch/frv/kernel/vmlinux.lds.S b/arch/frv/kernel/vmlinux.lds.S index fceafd2cc202..f474534ba78a 100644 --- a/arch/frv/kernel/vmlinux.lds.S +++ b/arch/frv/kernel/vmlinux.lds.S | |||
@@ -112,6 +112,7 @@ SECTIONS | |||
112 | #endif | 112 | #endif |
113 | ) | 113 | ) |
114 | SCHED_TEXT | 114 | SCHED_TEXT |
115 | LOCK_TEXT | ||
115 | *(.fixup) | 116 | *(.fixup) |
116 | *(.gnu.warning) | 117 | *(.gnu.warning) |
117 | *(.exitcall.exit) | 118 | *(.exitcall.exit) |
diff --git a/include/asm-frv/bug.h b/include/asm-frv/bug.h index 074c0d5770eb..451712cc3060 100644 --- a/include/asm-frv/bug.h +++ b/include/asm-frv/bug.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #define _ASM_BUG_H | 12 | #define _ASM_BUG_H |
13 | 13 | ||
14 | #include <linux/config.h> | 14 | #include <linux/config.h> |
15 | #include <linux/linkage.h> | ||
15 | 16 | ||
16 | #ifdef CONFIG_BUG | 17 | #ifdef CONFIG_BUG |
17 | /* | 18 | /* |
diff --git a/include/asm-frv/dma-mapping.h b/include/asm-frv/dma-mapping.h index 5003e017fd1e..e9fc1d47797e 100644 --- a/include/asm-frv/dma-mapping.h +++ b/include/asm-frv/dma-mapping.h | |||
@@ -23,7 +23,7 @@ void dma_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t | |||
23 | * returns, or alternatively stop on the first sg_dma_len(sg) which | 23 | * returns, or alternatively stop on the first sg_dma_len(sg) which |
24 | * is 0. | 24 | * is 0. |
25 | */ | 25 | */ |
26 | #define sg_dma_address(sg) ((unsigned long) (page_to_phys((sg)->page) + (sg)->offset)) | 26 | #define sg_dma_address(sg) ((sg)->dma_address) |
27 | #define sg_dma_len(sg) ((sg)->length) | 27 | #define sg_dma_len(sg) ((sg)->length) |
28 | 28 | ||
29 | /* | 29 | /* |
diff --git a/include/asm-frv/mc146818rtc.h b/include/asm-frv/mc146818rtc.h new file mode 100644 index 000000000000..90dfb7a633d1 --- /dev/null +++ b/include/asm-frv/mc146818rtc.h | |||
@@ -0,0 +1,16 @@ | |||
1 | /* mc146818rtc.h: RTC defs | ||
2 | * | ||
3 | * Copyright (C) 2005 Red Hat, Inc. All Rights Reserved. | ||
4 | * Written by David Howells (dhowells@redhat.com) | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License | ||
8 | * as published by the Free Software Foundation; either version | ||
9 | * 2 of the License, or (at your option) any later version. | ||
10 | */ | ||
11 | |||
12 | #ifndef _ASM_MC146818RTC_H | ||
13 | #define _ASM_MC146818RTC_H | ||
14 | |||
15 | |||
16 | #endif /* _ASM_MC146818RTC_H */ | ||
diff --git a/include/asm-frv/pci.h b/include/asm-frv/pci.h index 1168451c275f..598b0c6b695d 100644 --- a/include/asm-frv/pci.h +++ b/include/asm-frv/pci.h | |||
@@ -57,6 +57,14 @@ extern void pci_free_consistent(struct pci_dev *hwdev, size_t size, | |||
57 | */ | 57 | */ |
58 | #define PCI_DMA_BUS_IS_PHYS (1) | 58 | #define PCI_DMA_BUS_IS_PHYS (1) |
59 | 59 | ||
60 | /* pci_unmap_{page,single} is a nop so... */ | ||
61 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) | ||
62 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) | ||
63 | #define pci_unmap_addr(PTR, ADDR_NAME) (0) | ||
64 | #define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) do { } while (0) | ||
65 | #define pci_unmap_len(PTR, LEN_NAME) (0) | ||
66 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) | ||
67 | |||
60 | #ifdef CONFIG_PCI | 68 | #ifdef CONFIG_PCI |
61 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | 69 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, |
62 | enum pci_dma_burst_strategy *strat, | 70 | enum pci_dma_burst_strategy *strat, |
diff --git a/include/asm-frv/pgtable.h b/include/asm-frv/pgtable.h index 844666377dcb..d1c3b182c691 100644 --- a/include/asm-frv/pgtable.h +++ b/include/asm-frv/pgtable.h | |||
@@ -421,6 +421,11 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, | |||
421 | } | 421 | } |
422 | 422 | ||
423 | /* | 423 | /* |
424 | * Macro to mark a page protection value as "uncacheable" | ||
425 | */ | ||
426 | #define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) | _PAGE_NOCACHE)) | ||
427 | |||
428 | /* | ||
424 | * Conversion functions: convert a page and protection to a page entry, | 429 | * Conversion functions: convert a page and protection to a page entry, |
425 | * and a page entry and page directory to the page they refer to. | 430 | * and a page entry and page directory to the page they refer to. |
426 | */ | 431 | */ |
diff --git a/include/asm-frv/types.h b/include/asm-frv/types.h index 50605df6d8ac..2560f596a75d 100644 --- a/include/asm-frv/types.h +++ b/include/asm-frv/types.h | |||
@@ -59,7 +59,6 @@ typedef unsigned int u32; | |||
59 | 59 | ||
60 | typedef signed long long s64; | 60 | typedef signed long long s64; |
61 | typedef unsigned long long u64; | 61 | typedef unsigned long long u64; |
62 | typedef u64 u_quad_t; | ||
63 | 62 | ||
64 | /* Dma addresses are 32-bits wide. */ | 63 | /* Dma addresses are 32-bits wide. */ |
65 | 64 | ||
diff --git a/include/asm-frv/unistd.h b/include/asm-frv/unistd.h index 5cf989b448d5..cde376a7a857 100644 --- a/include/asm-frv/unistd.h +++ b/include/asm-frv/unistd.h | |||
@@ -313,7 +313,7 @@ do { \ | |||
313 | unsigned long __sr2 = (res); \ | 313 | unsigned long __sr2 = (res); \ |
314 | if (__builtin_expect(__sr2 >= (unsigned long)(-4095), 0)) { \ | 314 | if (__builtin_expect(__sr2 >= (unsigned long)(-4095), 0)) { \ |
315 | errno = (-__sr2); \ | 315 | errno = (-__sr2); \ |
316 | __sr2 = ULONG_MAX; \ | 316 | __sr2 = ~0UL; \ |
317 | } \ | 317 | } \ |
318 | return (type) __sr2; \ | 318 | return (type) __sr2; \ |
319 | } while (0) | 319 | } while (0) |
diff --git a/include/asm-frv/vga.h b/include/asm-frv/vga.h new file mode 100644 index 000000000000..a702c800a229 --- /dev/null +++ b/include/asm-frv/vga.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* vga.h: VGA register stuff | ||
2 | * | ||
3 | * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. | ||
4 | * Written by David Howells (dhowells@redhat.com) | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License | ||
8 | * as published by the Free Software Foundation; either version | ||
9 | * 2 of the License, or (at your option) any later version. | ||
10 | */ | ||
11 | |||
12 | #ifndef _ASM_VGA_H | ||
13 | #define _ASM_VGA_H | ||
14 | |||
15 | |||
16 | |||
17 | #endif /* _ASM_VGA_H */ | ||
diff --git a/include/asm-frv/xor.h b/include/asm-frv/xor.h new file mode 100644 index 000000000000..c82eb12a5b18 --- /dev/null +++ b/include/asm-frv/xor.h | |||
@@ -0,0 +1 @@ | |||
#include <asm-generic/xor.h> | |||