From bb34748589ad85a12277b1403dc78cbd529e8958 Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 10 Feb 2011 13:01:29 +0000 Subject: [PATCH] - remove typo git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@405 315a16e6-25f9-4109-90ae-ca3045a26c18 --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index 627c569d..6d95da66 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -185,7 +185,7 @@ static size_t task_get_pages(task_t* task, uint32_t npages) if (BUILTIN_EXPECT(!npages, 0)) return ret; - if (BUILTIN_EXPECT(npages > total_available_pages, 0)) + if (BUILTIN_EXPECT(npages > atomic_int32_read(&total_available_pages), 0)) return ret; spinlock_lock(&bitmap_lock);