fix: memory: use rigth index and addr, add page to pt before write it

This commit is contained in:
2024-10-29 15:17:59 +01:00
parent 659ba24f12
commit ff058d0ae1
4 changed files with 17 additions and 11 deletions

View File

@ -36,9 +36,6 @@ void kernel_main(void)
"I see no way to confuse an array of 256 seg:off pairs with a "
"complex 8*unknown quantity -byte descriptor table. -- Troy "
"Martin 03:50, 22 March 2009 (UTC)\n");
char *str = vmalloc(10);
if (str)
strcpy(str, "hello");
/* int i = 0; */
/* while (vmalloc(10)) */
/* ; */