Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Commit

Permalink
mmap is CONFIG_64BIT
Browse files Browse the repository at this point in the history
  • Loading branch information
palmer-dabbelt committed Jun 2, 2017
1 parent 8adad12 commit ed7545c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/riscv/kernel/sys_riscv.c
Expand Up @@ -15,6 +15,7 @@
#include <linux/syscalls.h>
#include <asm/unistd.h>

#ifdef CONFIG_64BIT
SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
unsigned long, prot, unsigned long, flags,
unsigned long, fd, off_t, offset)
Expand All @@ -23,8 +24,7 @@ SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,
return -EINVAL;
return sys_mmap_pgoff(addr, len, prot, flags, fd, offset >> PAGE_SHIFT);
}

#ifndef CONFIG_64BIT
#else
SYSCALL_DEFINE6(mmap2, unsigned long, addr, unsigned long, len,
unsigned long, prot, unsigned long, flags,
unsigned long, fd, off_t, offset)
Expand Down

0 comments on commit ed7545c

Please sign in to comment.