Add flags that VMs need. But many other things do as well.
[akaros.git] / kern / arch / x86 / trap32.h
index e994cb9..e56ed11 100644 (file)
@@ -107,4 +107,14 @@ static inline void x86_set_stacktop_tss(struct taskstate *tss, uintptr_t top)
        tss->ts_ss0 = GD_KD;
 }
 
+static inline uintptr_t x86_get_hwtf_pc(struct hw_trapframe *hw_tf)
+{
+       return hw_tf->tf_eip;
+}
+
+static inline uintptr_t x86_get_hwtf_fp(struct hw_trapframe *hw_tf)
+{
+       return hw_tf->tf_regs.reg_ebp;
+}
+
 #endif /* ROS_KERN_ARCH_TRAP32_H */