diff options
author | Marius Strobl <marius@FreeBSD.org> | 2004-08-31 15:28:12 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2004-08-31 15:28:12 +0000 |
commit | 99b40d715ecda6ec745213e0d4406dd08947db01 (patch) | |
tree | 4def27ff66f7df0d310d21258ccbde853b967903 /sysutils/afbinit/files | |
parent | e5d6fe47d0b0d5ec4fbc7394371fcc17adf64f9b (diff) |
Notes
Diffstat (limited to 'sysutils/afbinit/files')
-rw-r--r-- | sysutils/afbinit/files/patch-afbinit.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/afbinit/files/patch-afbinit.c b/sysutils/afbinit/files/patch-afbinit.c index a26aac113849..bc2b2857c452 100644 --- a/sysutils/afbinit/files/patch-afbinit.c +++ b/sysutils/afbinit/files/patch-afbinit.c @@ -60,6 +60,24 @@ This patch is based on code marked: if(ucode == NULL) { fprintf(stderr, "Cannot malloc %d bytes for UCODE.\n", ucheader.ucode_words << 2); +@@ -236,7 +237,7 @@ + /* MMAP the registers. */ + uregs = mmap(0, 0x2000, + PROT_READ | PROT_WRITE, +- MAP_PRIVATE, ++ MAP_SHARED, + afb_fd, + 0x04000000); + if (uregs == (void *)-1L) { +@@ -246,7 +247,7 @@ + + kregs = mmap(0, 0x2000, + PROT_READ | PROT_WRITE, +- MAP_PRIVATE, ++ MAP_SHARED, + afb_fd, + 0x0bc04000); + if (kregs == (void *)-1L) { @@ -254,14 +255,26 @@ exit(1); } |