Skip to content

Commit 11db81a

Browse files
committed
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
2 parents 0993537 + 63d7bd1 commit 11db81a

7 files changed

Lines changed: 19 additions & 19 deletions

File tree

arch/microblaze/Kconfig

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,6 @@ config MMU
8282
bool "MMU support"
8383
default n
8484

85-
config NO_MMU
86-
bool
87-
depends on !MMU
88-
default y
89-
9085
comment "Boot options"
9186

9287
config CMDLINE_BOOL
@@ -250,10 +245,6 @@ config MICROBLAZE_64K_PAGES
250245

251246
endchoice
252247

253-
config KERNEL_PAD
254-
hex "Kernel PAD for unpacking" if ADVANCED_OPTIONS
255-
default "0x80000" if MMU
256-
257248
endmenu
258249

259250
source "mm/Kconfig"

arch/microblaze/boot/dts/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#
2-
# arch/microblaze/boot/Makefile
3-
#
42

53
obj-y += linked_dtb.o
64

arch/microblaze/kernel/head.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ _invalidate:
176176
/* start to do TLB calculation */
177177
addik r12, r0, _end
178178
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 */
180180

181181
or r9, r0, r0 /* TLB0 = 0 */
182182
or r10, r0, r0 /* TLB1 = 0 */

arch/microblaze/kernel/hw_exception_handler.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@
193193
* - W S REG EXC
194194
*
195195
*
196-
* STACK FRAME STRUCTURE (for NO_MMU)
197-
* ---------------------------------
196+
* STACK FRAME STRUCTURE (for CONFIG_MMU=n)
197+
* ----------------------------------------
198198
*
199199
* +-------------+ + 0
200200
* | MSR |

arch/microblaze/kernel/sys_microblaze.c

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,23 @@
3333
#include <linux/slab.h>
3434
#include <asm/syscalls.h>
3535

36-
asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
37-
unsigned long prot, unsigned long flags,
38-
unsigned long fd, off_t pgoff)
36+
SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
37+
unsigned long, prot, unsigned long, flags, unsigned long, fd,
38+
off_t, pgoff)
3939
{
4040
if (pgoff & ~PAGE_MASK)
4141
return -EINVAL;
4242

4343
return sys_mmap_pgoff(addr, len, prot, flags, fd, pgoff >> PAGE_SHIFT);
4444
}
45+
46+
SYSCALL_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+
}

arch/microblaze/kernel/syscall_table.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ ENTRY(sys_call_table)
192192
.long sys_ni_syscall /* reserved for streams2 */
193193
.long sys_vfork /* 190 */
194194
.long sys_getrlimit
195-
.long sys_mmap_pgoff /* mmap2 */
195+
.long sys_mmap2
196196
.long sys_truncate64
197197
.long sys_ftruncate64
198198
.long sys_stat64 /* 195 */

arch/microblaze/kernel/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
148148

149149
static struct irqaction timer_irqaction = {
150150
.handler = timer_interrupt,
151-
.flags = IRQF_DISABLED | IRQF_TIMER,
151+
.flags = IRQF_TIMER,
152152
.name = "timer",
153153
.dev_id = &clockevent_xilinx_timer,
154154
};

0 commit comments

Comments
 (0)