fix: memory: use rigth index and addr, add page to pt before write it
This commit is contained in:
@ -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)) */
|
||||
/* ; */
|
||||
|
Reference in New Issue
Block a user