diff options
Diffstat (limited to 'packages/pxaregs/pxaregs-1.14/munmap.patch')
-rw-r--r-- | packages/pxaregs/pxaregs-1.14/munmap.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/pxaregs/pxaregs-1.14/munmap.patch b/packages/pxaregs/pxaregs-1.14/munmap.patch new file mode 100644 index 0000000000..a9c4b95cf0 --- /dev/null +++ b/packages/pxaregs/pxaregs-1.14/munmap.patch @@ -0,0 +1,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; |