From 0cd63cd1391f4be272dfdfb9e532f364bd6bfd2c Mon Sep 17 00:00:00 2001 From: Harvey Xing <71458491+xing1357@users.noreply.github.com> Date: Wed, 16 Aug 2023 09:29:27 -0500 Subject: [PATCH] Update kernel.c --- 22-malloc/kernel/kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/22-malloc/kernel/kernel.c b/22-malloc/kernel/kernel.c index ecd034c..bdf1ffa 100644 --- a/22-malloc/kernel/kernel.c +++ b/22-malloc/kernel/kernel.c @@ -19,7 +19,7 @@ void user_input(char *input) { } else if (strcmp(input, "PAGE") == 0) { /* Lesson 22: Code to test kmalloc, the rest is unchanged */ u32 phys_addr; - u32 page = kmalloc(1000, 1, &phys_addr); + u32 page = kmalloc_int(1000, 1, &phys_addr); char page_str[16] = ""; hex_to_ascii(page, page_str); char phys_str[16] = "";