Change Details
tools/lib/atusd.c |
1 | 1 | /* |
2 | 2 | * lib/atusd.c - ATRF access functions library (uSD version) |
3 | 3 | * |
4 | | * Written 2010 by Werner Almesberger |
5 | | * Copyright 2010 Werner Almesberger |
| 4 | * Written 2010-2011 by Werner Almesberger |
| 5 | * Copyright 2010-2011 Werner Almesberger |
6 | 6 | * |
7 | 7 | * This program is free software; you can redistribute it and/or modify |
8 | 8 | * it under the terms of the GNU General Public License as published by |
... | ... | |
181 | 181 | exit(1); |
182 | 182 | } |
183 | 183 | |
184 | | dsc->fd = open("/dev/mem", O_RDWR); |
| 184 | dsc->fd = open("/dev/mem", O_RDWR | O_SYNC); |
185 | 185 | if (dsc->fd < 0) { |
186 | 186 | perror("/dev/mem"); |
187 | 187 | exit(1); |
Download the corresponding diff file