Fix a bad memset that was breaking reboots on ramdisks

This commit is contained in:
Kevin Lange 2015-06-02 12:15:38 -07:00
parent c6e5e9f84f
commit 212efda313

View File

@ -286,7 +286,7 @@ uintptr_t memory_total(){
void paging_install(uint32_t memsize) {
nframes = memsize / 4;
frames = (uint32_t *)kmalloc(INDEX_FROM_BIT(nframes * 8));
memset(frames, 0, INDEX_FROM_BIT(nframes));
memset(frames, 0, INDEX_FROM_BIT(nframes * 8));
uintptr_t phys;
kernel_directory = (page_directory_t *)kvmalloc_p(sizeof(page_directory_t),&phys);