thread: Do not disable interrupts unnecessarily while initializing stack.
[pintos-anon] / src / threads / malloc.c
index 2bb5571e230d3ab483f793729a6c484960b0dc53..f6f803b9b6dc437a25876928679ab393176c086d 100644 (file)
@@ -5,9 +5,9 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <string.h>
-#include "threads/mmu.h"
 #include "threads/palloc.h"
 #include "threads/synch.h"
+#include "threads/vaddr.h"
 
 /* A simple implementation of malloc().
 
@@ -214,7 +214,7 @@ realloc (void *old_block, size_t new_size)
 }
 
 /* Frees block P, which must have been previously allocated with
-   malloc() or calloc(). */
+   malloc(), calloc(), or realloc(). */
 void
 free (void *p) 
 {