Big merge: thanks alex and greatlord. Not a complete merge but most
[reactos.git] / reactos / ntoskrnl / include / internal / powerpc / ke.h
index a297360..e02a3e1 100644 (file)
@@ -120,17 +120,61 @@ __asm__ __volatile__("mfmsr 0\n\t" \
 
 #define KePPCEnableInterrupts() \
  __asm__ __volatile__("mfmsr 0\n\t" \
-                      "li    8,0x8000\n\t" \
+                      "lis    8,0x8000@ha\n\t" \
                       "or    0,8,0\n\t" \
                       "mtmsr 0\n\t")
 
 #define KePPCHaltProcessor()     ;
 
-#endif /* __ASM__ */
-
 #define KeArchEraseFlags()
 #define KeArchDisableInterrupts() KePPCDisableInterrupts()
 
+static __inline struct _KPRCB * KeGetCurrentPrcb(
+  VOID)
+{
+  ULONG Value = 0;
+  return (struct _KPRCB *) Value;
+}
+
+static __inline KIRQL KeGetCurrentIrql(
+    VOID)
+{
+    return PASSIVE_LEVEL;
+}
+
+VOID
+STDCALL
+KePPCInitThreadWithContext(
+       PKTHREAD Thread,
+       PKSYSTEM_ROUTINE SystemRoutine,
+       PKSTART_ROUTINE StartRoutine,
+       PVOID StartContext,
+       PCONTEXT Context);
+
+VOID
+STDCALL
+KeApplicationProcessorInitDispatcher(
+  VOID);
+
+VOID
+STDCALL
+KeCreateApplicationProcessorIdleThread(
+  ULONG Id);
+
+VOID KePPCHaltProcessor();
+
+#ifdef _NTOSKRNL_ /* FIXME: Move flags above to NDK instead of here */
+VOID
+STDCALL
+KiThreadStartup(PKSYSTEM_ROUTINE SystemRoutine,
+                PKSTART_ROUTINE StartRoutine,
+                PVOID StartContext,
+                BOOLEAN UserThread,
+                KTRAP_FRAME TrapFrame);
+#endif
+
+#endif /* __ASM__ */
+
 #endif /* __NTOSKRNL_INCLUDE_INTERNAL_POWERPC_KE_H */
 
 /* EOF */