* updated maddy (0.7.1 -> 0.8.1), untested
[t2sde.git] / package / sparc / afbinit / hotfix-mmap.patch
blob4e82ecb4f3626b7b8c91dc7a5534ab58e89aa396
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/afbinit/hotfix-mmap.patch
3 # Copyright (C) 2022 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- ./afbinit.c.vanilla
15 +++ ./afbinit.c
16 @@ -236,7 +236,7 @@
17 /* MMAP the registers. */
18 uregs = mmap(0, 0x2000,
19 PROT_READ | PROT_WRITE,
20 - MAP_PRIVATE,
21 + MAP_SHARED,
22 afb_fd,
23 0x04000000);
24 if (uregs == (void *)-1L) {
25 @@ -246,7 +246,7 @@
27 kregs = mmap(0, 0x2000,
28 PROT_READ | PROT_WRITE,
29 - MAP_PRIVATE,
30 + MAP_SHARED,
31 afb_fd,
32 0x0bc04000);
33 if (kregs == (void *)-1L) {