Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-4] src/sys/arch/arm/arm32



Module Name:    src
Committed By:   snj
Date:           Wed Feb 21 18:33:20 UTC 2007

Modified Files:
        src/sys/arch/arm/arm32 [netbsd-4]: pmap.c

Log Message:
Pull up following revision(s) (requested by matt in ticket #457):
        sys/arch/arm/arm32/pmap.c: revision 1.158
>From Scott Allan in http://mail-index.netbsd.org/port-arm/2006/07/26/0000.html
I ran into a problem when I tried to set up a mapping that started at
virtual address 0xFFF00000 and was 0x00100000 long.  In other words, the
mapping should have gone to the end of the 32 bit address space.  The
mapping was made with no problem, but pmap_devmap_find_va() wouldn't
find an address within the mapping.  For example, if I told it to find a
mapping for 0x1000 bytes at 0xFFF01000, it would try to make sure that
0xFFF01000 was greater than 0xFFF00000 and that (0xFFF01000+0x1000) was
less than (0xFFF00000 +0x00100000).  However, that last expression
(0xFFF00000+0x00100000) wrapped around to be simply 0x00000000 so it
wasn't found.  This patch fixes this problem in pmap_devmap_find_va()
and pmap_devmap_find_pa() by subtracting one off of the


To generate a diff of this commit:
cvs rdiff -r1.157 -r1.157.24.1 src/sys/arch/arm/arm32/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index