|
@@ -416,7 +416,7 @@ EXPORT_SYMBOL(vm_insert_page);
|
|
* to a regular file. in this case, the unmapping will need
|
|
* to a regular file. in this case, the unmapping will need
|
|
* to invoke file system routines that need the global lock.
|
|
* to invoke file system routines that need the global lock.
|
|
*/
|
|
*/
|
|
-asmlinkage long sys_brk(unsigned long brk)
|
|
|
|
|
|
+SYSCALL_DEFINE1(brk, unsigned long, brk)
|
|
{
|
|
{
|
|
struct mm_struct *mm = current->mm;
|
|
struct mm_struct *mm = current->mm;
|
|
|
|
|
|
@@ -1573,7 +1573,7 @@ erase_whole_vma:
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(do_munmap);
|
|
EXPORT_SYMBOL(do_munmap);
|
|
|
|
|
|
-asmlinkage long sys_munmap(unsigned long addr, size_t len)
|
|
|
|
|
|
+SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len)
|
|
{
|
|
{
|
|
int ret;
|
|
int ret;
|
|
struct mm_struct *mm = current->mm;
|
|
struct mm_struct *mm = current->mm;
|
|
@@ -1657,10 +1657,9 @@ unsigned long do_mremap(unsigned long addr,
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(do_mremap);
|
|
EXPORT_SYMBOL(do_mremap);
|
|
|
|
|
|
-asmlinkage
|
|
|
|
-unsigned long sys_mremap(unsigned long addr,
|
|
|
|
- unsigned long old_len, unsigned long new_len,
|
|
|
|
- unsigned long flags, unsigned long new_addr)
|
|
|
|
|
|
+SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len,
|
|
|
|
+ unsigned long, new_len, unsigned long, flags,
|
|
|
|
+ unsigned long, new_addr)
|
|
{
|
|
{
|
|
unsigned long ret;
|
|
unsigned long ret;
|
|
|
|
|