Update kernel.c

This commit is contained in:
Harvey Xing 2023-08-16 09:29:27 -05:00 committed by GitHub
parent 7aff64740e
commit 0cd63cd139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ void user_input(char *input) {
} else if (strcmp(input, "PAGE") == 0) { } else if (strcmp(input, "PAGE") == 0) {
/* Lesson 22: Code to test kmalloc, the rest is unchanged */ /* Lesson 22: Code to test kmalloc, the rest is unchanged */
u32 phys_addr; u32 phys_addr;
u32 page = kmalloc(1000, 1, &phys_addr); u32 page = kmalloc_int(1000, 1, &phys_addr);
char page_str[16] = ""; char page_str[16] = "";
hex_to_ascii(page, page_str); hex_to_ascii(page, page_str);
char phys_str[16] = ""; char phys_str[16] = "";