From 7f3f686b1a53277b6fe714c5c76671cb233112cd Mon Sep 17 00:00:00 2001 From: Scott Haseley Date: Mon, 28 Mar 2016 15:43:39 -0400 Subject: [PATCH] Updated km4 to write to, and check, each page allocated in the multi-page allocation. This should find cases where students ignore npages and just allocate one page, which would previously work. --- kern/test/kmalloctest.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/kern/test/kmalloctest.c b/kern/test/kmalloctest.c index b3bf0cf..d016149 100644 --- a/kern/test/kmalloctest.c +++ b/kern/test/kmalloctest.c @@ -324,7 +324,7 @@ kmalloctest4thread(void *sm, unsigned long num) struct semaphore *sem = sm; void *ptrs[NUM_KM4_SIZES]; unsigned p, q; - unsigned i, j; + unsigned i, j, k; uint32_t magic; for (i=0; i