mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
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(). Corresponding to flashrom svn r1765. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
@ -277,9 +277,10 @@ int processor_flash_enable(void);
|
||||
/* physmap.c */
|
||||
void *physmap(const char *descr, uintptr_t phys_addr, size_t len);
|
||||
void *rphysmap(const char *descr, uintptr_t phys_addr, size_t len);
|
||||
void *physmap_round(const char *descr, uintptr_t phys_addr, size_t len);
|
||||
void *physmap_ro(const char *descr, uintptr_t phys_addr, size_t len);
|
||||
void *physmap_ro_unaligned(const char *descr, uintptr_t phys_addr, size_t len);
|
||||
void physunmap(void *virt_addr, size_t len);
|
||||
void physunmap_unaligned(void *virt_addr, size_t len);
|
||||
#if CONFIG_INTERNAL == 1
|
||||
int setup_cpu_msr(int cpu);
|
||||
void cleanup_cpu_msr(void);
|
||||
|
Reference in New Issue
Block a user