|
@@ -53,8 +53,6 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
|
|
/* See asm-sparc/uaccess.h */
|
|
/* See asm-sparc/uaccess.h */
|
|
if (len > TASK_SIZE - PAGE_SIZE)
|
|
if (len > TASK_SIZE - PAGE_SIZE)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
- if (ARCH_SUN4C && len > 0x20000000)
|
|
|
|
- return -ENOMEM;
|
|
|
|
if (!addr)
|
|
if (!addr)
|
|
addr = TASK_UNMAPPED_BASE;
|
|
addr = TASK_UNMAPPED_BASE;
|
|
|
|
|
|
@@ -65,10 +63,6 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
|
|
|
|
|
|
for (vmm = find_vma(current->mm, addr); ; vmm = vmm->vm_next) {
|
|
for (vmm = find_vma(current->mm, addr); ; vmm = vmm->vm_next) {
|
|
/* At this point: (!vmm || addr < vmm->vm_end). */
|
|
/* At this point: (!vmm || addr < vmm->vm_end). */
|
|
- if (ARCH_SUN4C && addr < 0xe0000000 && 0x20000000 - len < addr) {
|
|
|
|
- addr = PAGE_OFFSET;
|
|
|
|
- vmm = find_vma(current->mm, PAGE_OFFSET);
|
|
|
|
- }
|
|
|
|
if (TASK_SIZE - PAGE_SIZE - len < addr)
|
|
if (TASK_SIZE - PAGE_SIZE - len < addr)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
if (!vmm || addr + len <= vmm->vm_start)
|
|
if (!vmm || addr + len <= vmm->vm_start)
|
|
@@ -99,11 +93,6 @@ out:
|
|
|
|
|
|
int sparc_mmap_check(unsigned long addr, unsigned long len)
|
|
int sparc_mmap_check(unsigned long addr, unsigned long len)
|
|
{
|
|
{
|
|
- if (ARCH_SUN4C &&
|
|
|
|
- (len > 0x20000000 ||
|
|
|
|
- (addr < 0xe0000000 && addr + len > 0x20000000)))
|
|
|
|
- return -EINVAL;
|
|
|
|
-
|
|
|
|
/* See asm-sparc/uaccess.h */
|
|
/* See asm-sparc/uaccess.h */
|
|
if (len > TASK_SIZE - PAGE_SIZE || addr + len > TASK_SIZE - PAGE_SIZE)
|
|
if (len > TASK_SIZE - PAGE_SIZE || addr + len > TASK_SIZE - PAGE_SIZE)
|
|
return -EINVAL;
|
|
return -EINVAL;
|