X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fmalloc.c;h=f6f803b9b6dc437a25876928679ab393176c086d;hb=0eb663f85c834786c5b98186bb55a3e3224b8a2f;hp=2bb5571e230d3ab483f793729a6c484960b0dc53;hpb=615bf3b3d2a8573ed6fb9ddc0055745e163ac999;p=pintos-anon diff --git a/src/threads/malloc.c b/src/threads/malloc.c index 2bb5571..f6f803b 100644 --- a/src/threads/malloc.c +++ b/src/threads/malloc.c @@ -5,9 +5,9 @@ #include #include #include -#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) {