mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
Various smaller flashrom improvements
- Document new 'satasii' programmer in -L output and manpage. - Drop PCI_IO_BASE_ADDRESS, pci.h has such #defines already. - Beautify flashrom output and make it more consistent. - Same for the 'make' output (reordered some $CC parameters). Build-tested on i386, shouldn't break any builds, I think. - Some variable renaming and other cosmetic fixes. Corresponding to flashrom svn r529. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
@ -81,18 +81,18 @@ void physunmap(void *virt_addr, size_t len)
|
||||
void *physmap(const char *descr, unsigned long phys_addr, size_t len)
|
||||
{
|
||||
if (len == 0) {
|
||||
printf_debug("Not mapping %s, zero size at 0x%08lx\n",
|
||||
descr, phys_addr);
|
||||
printf_debug("Not mapping %s, zero size at 0x%08lx.\n",
|
||||
descr, phys_addr);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ((getpagesize() - 1) & len) {
|
||||
fprintf(stderr, "Mapping %s at 0x%08lx, unaligned size 0x%lx\n",
|
||||
fprintf(stderr, "Mapping %s at 0x%08lx, unaligned size 0x%lx.\n",
|
||||
descr, phys_addr, (unsigned long)len);
|
||||
}
|
||||
|
||||
if ((getpagesize() - 1) & phys_addr) {
|
||||
fprintf(stderr, "Mapping %s, 0x%lx bytes at unaligned 0x%08lx\n",
|
||||
fprintf(stderr, "Mapping %s, 0x%lx bytes at unaligned 0x%08lx.\n",
|
||||
descr, (unsigned long)len, phys_addr);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user