mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
Update kernel.c
This commit is contained in:
parent
7aff64740e
commit
0cd63cd139
@ -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] = "";
|
||||
|
Loading…
Reference in New Issue
Block a user