Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | Index: 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; |