[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] kernel2: Fix fuer mmc_automap_user



! kernel2: In mmc_automap_user werden die Pages einzeln gemappt, also
  sollte man nicht in jedem Durchlauf alle Seiten mappen.

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/kernel2/src/arch/i386/mm/mm_context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/kernel2/src/arch/i386/mm/mm_context.c b/src/kernel2/src/arch/i386/mm/mm_context.c
index e220857..722d052 100644
--- a/src/kernel2/src/arch/i386/mm/mm_context.c
+++ b/src/kernel2/src/arch/i386/mm/mm_context.c
@@ -566,7 +566,7 @@ vaddr_t mmc_automap_user(mmc_context_t* target_ctx, mmc_context_t* source_ctx,
     for (i = 0; i < count; i++) {
         paddr = mmc_resolve(source_ctx, start + (i * PAGE_SIZE));
         vaddr = free_page + (i * PAGE_SIZE);
-        if (!mmc_map(target_ctx, vaddr, paddr, flags, count)) {
+        if (!mmc_map(target_ctx, vaddr, paddr, flags, 1)) {
             mmc_unmap(target_ctx, free_page, i);
             return NULL;
         }
-- 
1.6.0.2