mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-21 12:27:11 +02:00
libbb/libbbd.c (main): open /dev/mem with O_SYNC to disable caching
This commit is contained in:
parent
3427d691e3
commit
4a04cdc51e
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* libbb/libbbd.c - Bitbang library daemon
|
||||
*
|
||||
* Written 2010 by Werner Almesberger
|
||||
* Copyright 2010 Werner Almesberger
|
||||
* Written 2010-2011 by Werner Almesberger
|
||||
* Copyright 2010-2011 Werner Almesberger
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -156,7 +156,7 @@ fprintf(stderr, "closefds\n");
|
||||
closefds();
|
||||
|
||||
fprintf(stderr, "open devmem\n");
|
||||
fd = open("/dev/mem", O_RDWR);
|
||||
fd = open("/dev/mem", O_RDWR | O_SYNC);
|
||||
if (fd < 0) {
|
||||
perror("/dev/mem");
|
||||
exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user