Architectural Support: x86_64 (#37)
[lunaix-os.git] / lunaix-os / kernel / device / poll.c
index 58d3621988831f13d3223bb30a6f328e37782a31..493d5d3ae8b5c820fc67f8e85cd36c275edc2d73 100644 (file)
@@ -244,9 +244,13 @@ iopoll_install(struct thread* thread, struct v_fd* fd)
     return pld;
 }
 
-__DEFINE_LXSYSCALL2(int, pollctl, int, action, va_list, va)
+__DEFINE_LXSYSCALL2(int, pollctl, int, action, sc_va_list, _ap)
 {
     int retcode = 0;
+    va_list va;
+
+    convert_valist(&va, _ap);
+    
     switch (action) {
         case _SPOLL_ADD: {
             int* ds = va_arg(va, int*);