aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/pxaregs/pxaregs-1.14/munmap.patch
blob: a9c4b95cf09dbb772e6e73bab636dff421c51a47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: pxaregs-1.14/pxaregs.c
===================================================================
--- pxaregs-1.14.orig/pxaregs.c
+++ pxaregs-1.14/pxaregs.c
@@ -1794,7 +1794,7 @@ static int getmem(u32 addr)
    regaddr = map + (addr & MAP_MASK);
 
    val = *(u32*) regaddr;
-   munmap(0,MAP_SIZE);
+   munmap(map,MAP_SIZE);
 
    return val;
 }
@@ -1829,7 +1829,7 @@ static void putmem(u32 addr, u32 val)
    regaddr = map + (addr & MAP_MASK);
 
    *(u32*) regaddr = val;
-   munmap(0,MAP_SIZE);
+   munmap(map,MAP_SIZE);
 }
 
 static u32 lastaddr = 0;