blob: a9c4b95cf09dbb772e6e73bab636dff421c51a47 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001Index: pxaregs-1.14/pxaregs.c
2===================================================================
3--- pxaregs-1.14.orig/pxaregs.c
4+++ pxaregs-1.14/pxaregs.c
5@@ -1794,7 +1794,7 @@ static int getmem(u32 addr)
6 regaddr = map + (addr & MAP_MASK);
7
8 val = *(u32*) regaddr;
9- munmap(0,MAP_SIZE);
10+ munmap(map,MAP_SIZE);
11
12 return val;
13 }
14@@ -1829,7 +1829,7 @@ static void putmem(u32 addr, u32 val)
15 regaddr = map + (addr & MAP_MASK);
16
17 *(u32*) regaddr = val;
18- munmap(0,MAP_SIZE);
19+ munmap(map,MAP_SIZE);
20 }
21
22 static u32 lastaddr = 0;