bbl.c (main): open /dev/mem with O_SYNC to disable caching

This commit is contained in:
Werner Almesberger 2011-01-03 18:29:20 -03:00
parent 49c76e0f8e
commit 76c0616f6c
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/*
* bbl.c - Produce a "Knight Rider" effect on the LED board
*
* Written 2010 by Werner Almesberger <werner@openmoko.org>
* Written 2010-2011 by Werner Almesberger <werner@openmoko.org>
*
* 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
@ -98,7 +98,7 @@ int main(int argc, char **argv)
{
int fd, i;
fd = open("/dev/mem", O_RDWR);
fd = open("/dev/mem", O_RDWR | O_SYNC);
if (fd < 0) {
perror("/dev/mem");
exit(1);