aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-11-12 00:28:55 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-12 00:28:55 -0500
commit11db81a59d0b2e563e30512cd76f23d0db384780 (patch)
tree35a84e91c71cf0fcbffa3c5c8af36547a203a867 /arch/microblaze
parent0993537bff42edfbea7649975196cd2552c4b936 (diff)
parent63d7bd1b171d5e7190c50dd3e48b1c561d7803d8 (diff)
Merge tag 'microblaze-3.13-rc1' of git://git.monstr.eu/linux-2.6-microblaze
Pull microblaze updates from Michal Simek: - Get rid of NO_MMU Kconfig - mmap2 fixups - Some minor cleanups * tag 'microblaze-3.13-rc1' of git://git.monstr.eu/linux-2.6-microblaze: microblaze: Remove incorrect file path microblaze: Fix bug with mmap2 syscall MB implementation microblaze: Use predefined SYSCALL_DEFINE macro microblaze: Remove deprecated IRQF_DISABLED microblaze: Calculate kernel pad automatically microblaze: Remove unused NO_MMU Kconfig parameter
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/Kconfig9
-rw-r--r--arch/microblaze/boot/dts/Makefile2
-rw-r--r--arch/microblaze/kernel/head.S2
-rw-r--r--arch/microblaze/kernel/hw_exception_handler.S4
-rw-r--r--arch/microblaze/kernel/sys_microblaze.c17
-rw-r--r--arch/microblaze/kernel/syscall_table.S2
-rw-r--r--arch/microblaze/kernel/timer.c2
7 files changed, 19 insertions, 19 deletions
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index b82f82b74319..655e1cadf692 100644
--- a/arch/microblaze/Kconfig
+++ b/arch/microblaze/Kconfig
@@ -82,11 +82,6 @@ config MMU
82 bool "MMU support" 82 bool "MMU support"
83 default n 83 default n
84 84
85config NO_MMU
86 bool
87 depends on !MMU
88 default y
89
90comment "Boot options" 85comment "Boot options"
91 86
92config CMDLINE_BOOL 87config CMDLINE_BOOL
@@ -250,10 +245,6 @@ config MICROBLAZE_64K_PAGES
250 245
251endchoice 246endchoice
252 247
253config KERNEL_PAD
254 hex "Kernel PAD for unpacking" if ADVANCED_OPTIONS
255 default "0x80000" if MMU
256
257endmenu 248endmenu
258 249
259source "mm/Kconfig" 250source "mm/Kconfig"
diff --git a/arch/microblaze/boot/dts/Makefile b/arch/microblaze/boot/dts/Makefile
index c3b3a5d67b89..c4982d16e555 100644
--- a/arch/microblaze/boot/dts/Makefile
+++ b/arch/microblaze/boot/dts/Makefile
@@ -1,6 +1,4 @@
1# 1#
2# arch/microblaze/boot/Makefile
3#
4 2
5obj-y += linked_dtb.o 3obj-y += linked_dtb.o
6 4
diff --git a/arch/microblaze/kernel/head.S b/arch/microblaze/kernel/head.S
index fcc797feb9db..817b7eec95b6 100644
--- a/arch/microblaze/kernel/head.S
+++ b/arch/microblaze/kernel/head.S
@@ -176,7 +176,7 @@ _invalidate:
176 /* start to do TLB calculation */ 176 /* start to do TLB calculation */
177 addik r12, r0, _end 177 addik r12, r0, _end
178 rsub r12, r3, r12 178 rsub r12, r3, r12
179 addik r12, r12, CONFIG_KERNEL_PAD /* that's the pad */ 179 addik r12, r12, CONFIG_LOWMEM_SIZE >> PTE_SHIFT /* that's the pad */
180 180
181 or r9, r0, r0 /* TLB0 = 0 */ 181 or r9, r0, r0 /* TLB0 = 0 */
182 or r10, r0, r0 /* TLB1 = 0 */ 182 or r10, r0, r0 /* TLB1 = 0 */
diff --git a/arch/microblaze/kernel/hw_exception_handler.S b/arch/microblaze/kernel/hw_exception_handler.S
index 61b3a1fed46f..fc6b89f4dd31 100644
--- a/arch/microblaze/kernel/hw_exception_handler.S
+++ b/arch/microblaze/kernel/hw_exception_handler.S
@@ -193,8 +193,8 @@
193 * - W S REG EXC 193 * - W S REG EXC
194 * 194 *
195 * 195 *
196 * STACK FRAME STRUCTURE (for NO_MMU) 196 * STACK FRAME STRUCTURE (for CONFIG_MMU=n)
197 * --------------------------------- 197 * ----------------------------------------
198 * 198 *
199 * +-------------+ + 0 199 * +-------------+ + 0
200 * | MSR | 200 * | MSR |
diff --git a/arch/microblaze/kernel/sys_microblaze.c b/arch/microblaze/kernel/sys_microblaze.c
index f905b3ae68c7..f1e1f666ddde 100644
--- a/arch/microblaze/kernel/sys_microblaze.c
+++ b/arch/microblaze/kernel/sys_microblaze.c
@@ -33,12 +33,23 @@
33#include <linux/slab.h> 33#include <linux/slab.h>
34#include <asm/syscalls.h> 34#include <asm/syscalls.h>
35 35
36asmlinkage long sys_mmap(unsigned long addr, unsigned long len, 36SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
37 unsigned long prot, unsigned long flags, 37 unsigned long, prot, unsigned long, flags, unsigned long, fd,
38 unsigned long fd, off_t pgoff) 38 off_t, pgoff)
39{ 39{
40 if (pgoff & ~PAGE_MASK) 40 if (pgoff & ~PAGE_MASK)
41 return -EINVAL; 41 return -EINVAL;
42 42
43 return sys_mmap_pgoff(addr, len, prot, flags, fd, pgoff >> PAGE_SHIFT); 43 return sys_mmap_pgoff(addr, len, prot, flags, fd, pgoff >> PAGE_SHIFT);
44} 44}
45
46SYSCALL_DEFINE6(mmap2, unsigned long, addr, unsigned long, len,
47 unsigned long, prot, unsigned long, flags, unsigned long, fd,
48 unsigned long, pgoff)
49{
50 if (pgoff & (~PAGE_MASK >> 12))
51 return -EINVAL;
52
53 return sys_mmap_pgoff(addr, len, prot, flags, fd,
54 pgoff >> (PAGE_SHIFT - 12));
55}
diff --git a/arch/microblaze/kernel/syscall_table.S b/arch/microblaze/kernel/syscall_table.S
index 4fca56cf02f6..b882ad50535b 100644
--- a/arch/microblaze/kernel/syscall_table.S
+++ b/arch/microblaze/kernel/syscall_table.S
@@ -192,7 +192,7 @@ ENTRY(sys_call_table)
192 .long sys_ni_syscall /* reserved for streams2 */ 192 .long sys_ni_syscall /* reserved for streams2 */
193 .long sys_vfork /* 190 */ 193 .long sys_vfork /* 190 */
194 .long sys_getrlimit 194 .long sys_getrlimit
195 .long sys_mmap_pgoff /* mmap2 */ 195 .long sys_mmap2
196 .long sys_truncate64 196 .long sys_truncate64
197 .long sys_ftruncate64 197 .long sys_ftruncate64
198 .long sys_stat64 /* 195 */ 198 .long sys_stat64 /* 195 */
diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/timer.c
index e4b3f33ef34c..d7abb71abf61 100644
--- a/arch/microblaze/kernel/timer.c
+++ b/arch/microblaze/kernel/timer.c
@@ -148,7 +148,7 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
148 148
149static struct irqaction timer_irqaction = { 149static struct irqaction timer_irqaction = {
150 .handler = timer_interrupt, 150 .handler = timer_interrupt,
151 .flags = IRQF_DISABLED | IRQF_TIMER, 151 .flags = IRQF_TIMER,
152 .name = "timer", 152 .name = "timer",
153 .dev_id = &clockevent_xilinx_timer, 153 .dev_id = &clockevent_xilinx_timer,
154}; 154};