]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/cpu-ppc.h
Initial import
[factor.git] / vm / cpu-ppc.h
index 3e4a0f32140a94404c6000e18724cdc2b8abde4e..e4ff35c15c602f133d72249167157bf6ec41fa65 100644 (file)
@@ -1,12 +1,16 @@
 #define FACTOR_CPU_STRING "ppc"
+#define FASTCALL
 
 register CELL ds asm("r14");
 register CELL rs asm("r15");
-register CELL cards_offset asm("r16");
 
+void c_to_factor(CELL quot);
+void dosym(CELL word);
+void docol_profiling(CELL word);
+void docol(CELL word);
+void undefined(CELL word);
+void set_callstack(F_STACK_FRAME *to, F_STACK_FRAME *from, CELL length, void *memcpy);
+void throw_impl(CELL quot, F_STACK_FRAME *rewind);
 void flush_icache(CELL start, CELL len);
 
-void *native_stack_pointer(void);
-
-#define PREVIOUS_FRAME(frame) (frame->previous)
-#define RETURN_ADDRESS(frame) (frame->return_address)
+#define FRAME_SUCCESSOR(frame) (frame)->previous