Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Fake IOAPIC address if there is no mptable found
Trammell Hudson [Wed, 22 Oct 2008 15:35:41 +0000 (10:35 -0500)]
kitten/arch/x86_64/kernel/ioapic.c

index 6c5fc98..bf38e20 100644 (file)
@@ -26,13 +26,13 @@ unsigned int ioapic_num;
  * Array containing the IDs of the IO APICs in the system.
  * The array is indexed by ioapic_index.
  */
-unsigned int ioapic_id[MAX_IO_APICS];
+unsigned int ioapic_id[MAX_IO_APICS] = { 1 };
 
 /**
  * Addresses of the IO APICs in the system.
  * The array is indexed by ioapic_index.
  */
-unsigned long ioapic_phys_addr[MAX_IO_APICS];
+uintptr_t ioapic_phys_addr[MAX_IO_APICS] = { 0xFEC00000 };
 
 /**
  * Resource entries for the IO APIC memory mapping.
@@ -250,7 +250,10 @@ ioapic_map(void)
        char *name;
 
        if (ioapic_num == 0)
-               return;
+       {
+               printk( "%s: Faking IO APIC\n", __func__ );
+               ioapic_num = 1;
+       }
 
        /*
         * Allocate enough memory for one resource structure per detected IO