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