Index: test/mm/falloc1/test.c
===================================================================
--- test/mm/falloc1/test.c	(revision 9b9e385b9726ff68e3cff0256d930903f39d0657)
+++ test/mm/falloc1/test.c	(revision 085d973c11067c76c6bb3481033b2ba387555f4a)
@@ -30,5 +30,5 @@
 #include <mm/page.h>
 #include <mm/frame.h>
-#include <mm/heap.h>
+#include <mm/slab.h>
 #include <arch/mm/page.h>
 #include <arch/types.h>
@@ -56,5 +56,5 @@
 			allocated = 0;
 			for (i = 0; i < MAX_FRAMES >> order; i++) {
-				frames[allocated] = frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status);
+				frames[allocated] = PA2KA(PFN2ADDR(frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status)));
 				
 				if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) {
@@ -81,5 +81,5 @@
 			printf("Deallocating ... ");
 			for (i = 0; i < allocated; i++) {
-				frame_free(frames[i]);
+				frame_free(ADDR2PFN(KA2PA(frames[i])));
 			}
 			printf("done.\n");
