Refactor switch context ASM files to comply to Wizard.
[bertos.git] / bertos / emul / switch_ctx_emul.S
diff --git a/bertos/emul/switch_ctx_emul.S b/bertos/emul/switch_ctx_emul.S
new file mode 100644 (file)
index 0000000..50567d1
--- /dev/null
@@ -0,0 +1,10 @@
+#if defined(__i386__)
+       #include "switch_i386.S"
+#elif defined(__x86_64__)
+       #include "switch_x86_64.s"
+#elif defined(_ARCH_PPC) || defined(_ARCH_PPC64)
+       #include "switch_ppc.S"
+#else
+       #error Unknown CPU
+#endif
+