summaryrefslogtreecommitdiff
path: root/dmi.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-03-05 00:16:16 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-03-05 00:16:16 +0000
commit0d66aa92097e085afa2656fc40753067fef25fda (patch)
tree4c51123a51fc9f3810ea6d646fbd453fd647b6b7 /dmi.c
parentee55e5449046b8d681590536848db4f52a3c9344 (diff)
downloadflashrom-0d66aa92097e085afa2656fc40753067fef25fda.tar.gz
Clean up physmap, fix unaligned mapping problems
Convert all physmaps in dmi.c to use aligned readonly maps. Convert all physmaps in cbtable.c to use unaligned readonly maps. Make physunmap() a generic architecture-independent wrapper. Add physunmap_unaligned() to complement physmap*_unaligned(). Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1765 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'dmi.c')
-rw-r--r--dmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmi.c b/dmi.c
index ef7ae2c..25a4957 100644
--- a/dmi.c
+++ b/dmi.c
@@ -153,7 +153,7 @@ static void dmi_table(uint32_t base, uint16_t len, uint16_t num)
{
int i = 0, j = 0;
- uint8_t *dmi_table_mem = physmap_round("DMI Table", base, len);
+ uint8_t *dmi_table_mem = physmap_ro("DMI Table", base, len);
if (dmi_table_mem == NULL) {
msg_perr("Unable to access DMI Table\n");
return;