Skip to content
Snippets Groups Projects
Commit 31c35a60 authored by Ollrogge's avatar Ollrogge
Browse files

fix pagefault for pb_set_plan arg

parent 466cbf5e
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,11 @@ struct pb_plan {
};
typedef struct pb_plan pb_plan_t;
SYSCALL_DEFINE1(pb_set_plan, struct pb_plan*, plan) {
printk("pb syscall called! \n");
SYSCALL_DEFINE1(pb_set_plan, pb_plan_t*, plan) {
pb_plan_t _plan = {0};
copy_from_user(&_plan, plan, sizeof(pb_plan_t));
printk("pb syscall called! %x \n", _plan.tmp);
return 0;
}
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment