diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-oe/recipes-support/pxaregs/pxaregs-1.14/munmap.patch | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-support/pxaregs/pxaregs-1.14/munmap.patch')
-rw-r--r-- | meta-oe/recipes-support/pxaregs/pxaregs-1.14/munmap.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/pxaregs/pxaregs-1.14/munmap.patch b/meta-oe/recipes-support/pxaregs/pxaregs-1.14/munmap.patch new file mode 100644 index 000000000..a9c4b95cf --- /dev/null +++ b/meta-oe/recipes-support/pxaregs/pxaregs-1.14/munmap.patch | |||
@@ -0,0 +1,22 @@ | |||
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; | ||