diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2008-05-14 14:51:22 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2008-05-14 14:51:22 +0000 |
commit | 6dc1d3b8dc6bd226bb2530c7af8d109407faa056 (patch) | |
tree | 751c172c116ae171069e55ea0b1fce1236db2b38 /flashrom.c | |
parent | a00e2a0edfcf71573c1d346ccc3f79e1d05f731f (diff) | |
download | ast2050-flashrom-6dc1d3b8dc6bd226bb2530c7af8d109407faa056.zip ast2050-flashrom-6dc1d3b8dc6bd226bb2530c7af8d109407faa056.tar.gz |
Add more infrastructure for flashrom ICH9 support
Corresponding to flashrom svn r234 and coreboot v2 svn r3314.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -381,8 +381,8 @@ int main(int argc, char *argv[]) pci_init(pacc); /* Initialize the PCI library */ pci_scan_bus(pacc); /* We want to get the list of devices */ - /* Open the memory device. A lot of functions need it */ - if ((fd_mem = open(MEM_DEV, O_RDWR)) < 0) { + /* Open the memory device UNCACHED. That's important for MMIO. */ + if ((fd_mem = open(MEM_DEV, O_RDWR|O_SYNC)) < 0) { perror("Error: Can not access memory using " MEM_DEV ". You need to be root."); exit(1); |