mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
Automatically unmap physmap()s
Similarly to the previous PCI self-clean up patch this one allows to get rid of a huge number of programmer shutdown functions and makes introducing bugs harder. It adds a new function rphysmap() that takes care of unmapping at shutdown. Callers are changed where it makes sense. Corresponding to flashrom svn r1714. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
@ -276,6 +276,7 @@ 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_try_ro(const char *descr, uintptr_t phys_addr, size_t len);
|
||||
void physunmap(void *virt_addr, size_t len);
|
||||
#if CONFIG_INTERNAL == 1
|
||||
|
Reference in New Issue
Block a user