From 0be6147a81a49a96e384488d31b2c0149e661dbd Mon Sep 17 00:00:00 2001 From: Taku Shimosawa Date: Wed, 22 Feb 2012 18:01:55 +0900 Subject: [PATCH] DMA copying now specifies destination operating system --- kernel/copy.c | 5 +++++ 1 file changed, 5 insertions(+) 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; }