diff options
author | Greg Watson <jarrah@users.sourceforge.net> | 2003-06-13 17:21:10 +0000 |
---|---|---|
committer | Greg Watson <jarrah@users.sourceforge.net> | 2003-06-13 17:21:10 +0000 |
commit | 26ba0f5f9bb04e296c3a6320a855639c2f14e83c (patch) | |
tree | dd62e2605de3c6014ff322af607178385bbd740f /src/northbridge/motorola/mpc107/mpc107_smp.c | |
parent | 64b2e474b14f3d23565363464e15fe2ec54e248e (diff) | |
download | coreboot-26ba0f5f9bb04e296c3a6320a855639c2f14e83c.tar.xz |
Freebios2
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@876 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/motorola/mpc107/mpc107_smp.c')
-rw-r--r-- | src/northbridge/motorola/mpc107/mpc107_smp.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/northbridge/motorola/mpc107/mpc107_smp.c b/src/northbridge/motorola/mpc107/mpc107_smp.c index 408a87fddb..c23e686334 100644 --- a/src/northbridge/motorola/mpc107/mpc107_smp.c +++ b/src/northbridge/motorola/mpc107/mpc107_smp.c @@ -1,4 +1,5 @@ -#include <pci.h> +#include <types.h> +#include <device/pci.h> #include "mpc107.h" void @@ -10,8 +11,12 @@ unsigned long this_processors_id(void) { u32 pic1; + struct device *dev; - pcibios_read_config_dword(0, 0, MPC107_PIC1, &pic1); + if ((dev = dev_find_slot(0, 0)) == NULL) + return 0; + + pic1 = pci_read_config32(dev, MPC107_PIC1); return (pic1 & MPC107_PIC1_CF_MP_ID) >> 14; } |