~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/x86/vdso/vdso32-setup.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
417
417
        return NULL;
418
418
}
419
419
 
420
 
struct vm_area_struct *get_gate_vma(struct task_struct *tsk)
 
420
struct vm_area_struct *get_gate_vma(struct mm_struct *mm)
421
421
{
422
 
        struct mm_struct *mm = tsk->mm;
423
 
 
424
 
        /* Check to see if this task was created in compat vdso mode */
 
422
        /*
 
423
         * Check to see if the corresponding task was created in compat vdso
 
424
         * mode.
 
425
         */
425
426
        if (mm && mm->context.vdso == (void *)VDSO_HIGH_BASE)
426
427
                return &gate_vma;
427
428
        return NULL;
428
429
}
429
430
 
430
 
int in_gate_area(struct task_struct *task, unsigned long addr)
 
431
int in_gate_area(struct mm_struct *mm, unsigned long addr)
431
432
{
432
 
        const struct vm_area_struct *vma = get_gate_vma(task);
 
433
        const struct vm_area_struct *vma = get_gate_vma(mm);
433
434
 
434
435
        return vma && addr >= vma->vm_start && addr < vma->vm_end;
435
436
}
436
437
 
437
 
int in_gate_area_no_task(unsigned long addr)
 
438
int in_gate_area_no_mm(unsigned long addr)
438
439
{
439
440
        return 0;
440
441
}