commit | 4a2f08c846bd835808a23d1cb699899aaf31cf94 | [log] [tgz] |
---|---|---|
author | Angel Pons <th3fanbus@gmail.com> | Mon Aug 03 16:15:16 2020 +0200 |
committer | Angel Pons <th3fanbus@gmail.com> | Tue Aug 04 21:35:26 2020 +0000 |
tree | 8d0ebaa2a2e3929defb9773886b36083c6976d92 | |
parent | cff4d1649f8a2b890521b53d8b7a6cb5c210d50e [diff] [blame] |
nb/intel/i945: Deduplicate PCIEXBAR decoding We can use `decode_pcie_bar` instead, if we make it non-static. Change-Id: Ic39f3df0293b4d44f031515b1f868e0bb9f750c9 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44145 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/src/northbridge/intel/i945/northbridge.c b/src/northbridge/intel/i945/northbridge.c index 20c9116..103b40f 100644 --- a/src/northbridge/intel/i945/northbridge.c +++ b/src/northbridge/intel/i945/northbridge.c
@@ -12,7 +12,7 @@ #include <cpu/intel/smm_reloc.h> #include "i945.h" -static int decode_pcie_bar(u32 *const base, u32 *const len) +int decode_pcie_bar(u32 *const base, u32 *const len) { *base = 0; *len = 0;