[haiku-development] [rfc] OS.h Architecture zoo

  • From: Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 19 Jan 2014 17:40:12 -0600

Post-scheduler, anything non-x86 is in pretty rough shape.

I've been slowing trying to nurse PPC back to at least compiling
(filling in what assembly I can and leaving TODO's where I'm clueless)

OS.h needs some additional CPU platforms. Any pushback (or additions)
to the changes below?


$ git diff
diff --git a/headers/os/kernel/OS.h b/headers/os/kernel/OS.h
index 5adb85c..3d0b40e 100644
--- a/headers/os/kernel/OS.h
+++ b/headers/os/kernel/OS.h
@@ -475,7 +475,15 @@ enum topology_level_type {
 enum cpu_platform {
        B_CPU_UNKNOWN,
        B_CPU_x86,
-       B_CPU_x86_64
+       B_CPU_x86_64,
+       B_CPU_PPC,
+       B_CPU_PPC_64,
+       B_CPU_M68K,
+       B_CPU_ARM,
+       B_CPU_ARM_64,
+       B_CPU_ALPHA,
+       B_CPU_MIPS,
+       B_CPU_SH,
 };
 
 enum cpu_vendor {
@@ -487,7 +495,9 @@ enum cpu_vendor {
        B_CPU_VENDOR_NATIONAL_SEMICONDUCTOR,
        B_CPU_VENDOR_RISE,
        B_CPU_VENDOR_TRANSMETA,
-       B_CPU_VENDOR_VIA
+       B_CPU_VENDOR_VIA,
+       B_CPU_VENDOR_MOTOROLA,
+       B_CPU_VENDOR_NEC,
 };
 
 typedef struct {


 -- Alex

Other related posts: