fix: add flag when page-frame link
This commit is contained in:
		@ -44,7 +44,7 @@ void *alloc_pages(size_t size)
 | 
			
		||||
				    PAGE_SIZE);
 | 
			
		||||
			return NULL;
 | 
			
		||||
		}
 | 
			
		||||
		page_table_entries[i] = (uint32_t)frame << 12;
 | 
			
		||||
		page_table_entries[i] = (uint32_t)frame << 12 | INIT_FLAGS;
 | 
			
		||||
	}
 | 
			
		||||
	return (void *)(page_table_entries[index] >> 12);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user