diff --git a/Part3/09_memory/kernel/kernel.c b/Part3/09_memory/kernel/kernel.c index 00a529c..7edb245 100644 --- a/Part3/09_memory/kernel/kernel.c +++ b/Part3/09_memory/kernel/kernel.c @@ -40,7 +40,11 @@ char *number = input + 4; kprint(number); u32 result = digit_conver(number); - umem_head = add_node( umem_head, result, 0x100, true, global_id++); + if (result < 10000) { + kprint("That memory address is reserved by the Kernel, addresses must be 10000+"); + } else { + umem_head = add_node( umem_head, result, 0x100, true, global_id++); + } } else { umem_head = add_node( umem_head, 0x10000, 0x100, true, global_id++); }