diff --git a/kernel/copy.c b/kernel/copy.c index ebc47d96..c4f28885 100644 --- a/kernel/copy.c +++ b/kernel/copy.c @@ -10,14 +10,19 @@ int memcpy_async(unsigned long dest, unsigned long src, if (notify) *notify = 0; memset(&req, 0, sizeof(req)); + /* Physical */ + req.src_os = (aal_os_t)AAL_THIS_OS; req.src_phys = src; + req.dest_os = (aal_os_t)AAL_THIS_OS; req.dest_phys = dest; req.size = len; if (notify) { + req.notify_os = (aal_os_t)AAL_THIS_OS; req.notify = (void *)virt_to_phys(notify); req.priv = (void *)1; } else if (wait) { + req.notify_os = (aal_os_t)AAL_THIS_OS; req.notify = (void *)virt_to_phys(&fin); req.priv = (void *)1; }