mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
ich_descriptors: Draw +0xfff into ICH_FREG_LIMIT()
The condition `base > limit` is still valid since `base` is always at least 4096 greater than `limit` in this case. Change-Id: I11ac0a50b3f32f47879e7cfb7a26068cd0572ede Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/19046 Reviewed-by: David Hendricks <david.hendricks@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
8
ichspi.c
8
ichspi.c
@ -1566,14 +1566,12 @@ static int ich9_handle_frap(uint32_t frap, int i)
|
||||
msg_pdbg("0x%02X: 0x%08x ", offset, freg);
|
||||
if (rwperms == 0x3) {
|
||||
msg_pdbg("FREG%i: %s region (0x%08x-0x%08x) is %s.\n", i,
|
||||
region_name, base, (limit | 0x0fff),
|
||||
access_names[rwperms]);
|
||||
region_name, base, limit, access_names[rwperms]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
msg_pwarn("FREG%i: Warning: %s region (0x%08x-0x%08x) is %s.\n", i,
|
||||
region_name, base, (limit | 0x0fff),
|
||||
access_names[rwperms]);
|
||||
region_name, base, limit, access_names[rwperms]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -1608,7 +1606,7 @@ static int ich9_handle_pr(const size_t reg_pr0, int i)
|
||||
|
||||
msg_pdbg("0x%02X: 0x%08x ", off, pr);
|
||||
msg_pwarn("%sPR%u: Warning: 0x%08x-0x%08x is %s.\n", prefix, i, ICH_FREG_BASE(pr),
|
||||
ICH_FREG_LIMIT(pr) | 0x0fff, access_names[rwperms]);
|
||||
ICH_FREG_LIMIT(pr), access_names[rwperms]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user