git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PCI 16x50 UART Controller, O2 Enablement (#39)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
device
/
poll.c
diff --git
a/lunaix-os/kernel/device/poll.c
b/lunaix-os/kernel/device/poll.c
index 58d3621988831f13d3223bb30a6f328e37782a31..493d5d3ae8b5c820fc67f8e85cd36c275edc2d73 100644
(file)
--- a/
lunaix-os/kernel/device/poll.c
+++ b/
lunaix-os/kernel/device/poll.c
@@
-244,9
+244,13
@@
iopoll_install(struct thread* thread, struct v_fd* fd)
return pld;
}
return pld;
}
-__DEFINE_LXSYSCALL2(int, pollctl, int, action,
va_list, va
)
+__DEFINE_LXSYSCALL2(int, pollctl, int, action,
sc_va_list, _ap
)
{
int retcode = 0;
{
int retcode = 0;
+ va_list va;
+
+ convert_valist(&va, _ap);
+
switch (action) {
case _SPOLL_ADD: {
int* ds = va_arg(va, int*);
switch (action) {
case _SPOLL_ADD: {
int* ds = va_arg(va, int*);