Do you have a question? Post it now! No Registration Necessary
- Posted on
March 24, 2006, 1:50 pm
rate this thread
I have a problem about implementation of mmap for remapping a specific
- mmap kernel routine:
if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT))
off = vma->vm_pgoff << PAGE_SHIFT;
start = TPU_START;
len = PAGE_ALIGN((start & ~PAGE_MASK)+TPU_SIZE);
if ((vma->vm_end - vma->vm_start + off) > len)
off += start;
vma->vm_pgoff = off >> PAGE_SHIFT;
/* This is an IO map - tell maydump to skip this VMA */
vma->vm_flags |= VM_IO;
/* for PPC arch */
pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE|_PAGE_GUARDED;
if (io_remap_page_range(vma->vm_start, off, vma->vm_end -
In user space I read always 0xFFFFFFFF in these registers after remapping.
I think that I made a mistake in this routine but I don't find it.
My scope is to remap some registers in userspace on a PPC embedded
I don't have experience about this.
Please, could you help me?
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
- » White House In Danger Of Imminent Collapse, First Family Evicted
- — The site's Newest Thread. Posted in » Electronics Design