[freenos] r411 committed - Fix smp_init() to set one cpu_t SMP_AVAIL|SMP_ACTIVE if no multiboot h...

  • From: freenos@xxxxxxxxxxxxxx
  • To: freenos@xxxxxxxxxxxxx
  • Date: Wed, 20 Oct 2010 19:30:11 +0000

Revision: 411
Author: nieklinnenbank
Date: Wed Oct 20 12:29:23 2010
Log: Fix smp_init() to set one cpu_t SMP_AVAIL|SMP_ACTIVE if no multiboot header is found.

http://code.google.com/p/freenos/source/detail?r=411

Modified:
 /branches/scratch/system/x86/pc/smp.c

=======================================
--- /branches/scratch/system/x86/pc/smp.c       Mon Oct 18 16:59:47 2010
+++ /branches/scratch/system/x86/pc/smp.c       Wed Oct 20 12:29:23 2010
@@ -84,6 +84,11 @@
            entry = smp_parse_entry(entry);
        }
     }
+    else
+    {
+        cpus_total = 1;
+        cpus[0].flags = SMP_AVAIL|SMP_ACTIVE;
+    }
 }

 void smp_boot_all(void)

Other related posts:

  • » [freenos] r411 committed - Fix smp_init() to set one cpu_t SMP_AVAIL|SMP_ACTIVE if no multiboot h... - freenos