Author: jhb
Date: Sat Jul 16 14:05:34 2011
New Revision: 224096
URL: http://svn.freebsd.org/changeset/base/224096

Log:
  Fix build when NEW_PCIB is not defined.
  
  Submitted by: gcooper (partially)
  Pointy hat to:        jhb

Modified:
  head/sys/x86/include/mptable.h
  head/sys/x86/x86/mptable.c

Modified: head/sys/x86/include/mptable.h
==============================================================================
--- head/sys/x86/include/mptable.h      Sat Jul 16 12:50:30 2011        
(r224095)
+++ head/sys/x86/include/mptable.h      Sat Jul 16 14:05:34 2011        
(r224096)
@@ -191,13 +191,15 @@ typedef struct BASETABLE_ENTRY {
 }       basetable_entry;
 
 #ifdef _KERNEL
-#ifdef NEW_PCIB
 struct mptable_hostb_softc {
+#ifdef NEW_PCIB
        struct pcib_host_resources sc_host_res;
        int             sc_decodes_vga_io;
        int             sc_decodes_isa_io;
+#endif
 };
 
+#ifdef NEW_PCIB
 void   mptable_pci_host_res_init(device_t pcib);
 #endif
 int    mptable_pci_probe_table(int bus);

Modified: head/sys/x86/x86/mptable.c
==============================================================================
--- head/sys/x86/x86/mptable.c  Sat Jul 16 12:50:30 2011        (r224095)
+++ head/sys/x86/x86/mptable.c  Sat Jul 16 14:05:34 2011        (r224096)
@@ -192,8 +192,10 @@ static void        mptable_probe_cpus_handler(u
 static void    mptable_register(void *dummy);
 static int     mptable_setup_local(void);
 static int     mptable_setup_io(void);
+#ifdef NEW_PCIB
 static void    mptable_walk_extended_table(
     mptable_extended_entry_handler *handler, void *arg);
+#endif
 static void    mptable_walk_table(mptable_entry_handler *handler, void *arg);
 static int     search_for_sig(u_int32_t target, int count);
 
@@ -437,6 +439,7 @@ mptable_walk_table(mptable_entry_handler
        }
 }
 
+#ifdef NEW_PCIB
 /*
  * Call the handler routine for each entry in the MP config extended
  * table.
@@ -455,6 +458,7 @@ mptable_walk_extended_table(mptable_exte
                entry = (ext_entry_ptr)((char *)entry + entry->length);
        }
 }
+#endif
 
 static void
 mptable_probe_cpus_handler(u_char *entry, void *arg)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to