blob: 729c9d92946d2be98733d7e86fcc0320a04306c2 [file] [log] [blame] [edit]
#ifndef ROS_INC_TRAPFRAME_H
#define ROS_INC_TRAPFRAME_H
#include <ros/arch/trapframe.h>
#define ROS_HW_CTX 1
#define ROS_SW_CTX 2
/* User-space context, either from a hardware event (IRQ, trap, etc), or from a
* syscall. Each arch defines its types. */
struct user_context {
int type;
union {
struct hw_trapframe hw_tf;
struct sw_trapframe sw_tf;
} tf;
};
#endif /* ROS_INC_TRAPFRAME_H */