This commit is contained in:
Baptiste Wicht 2016-08-08 22:33:00 +02:00
parent 63312a865b
commit 4c6d00c0b0

View File

@ -108,7 +108,7 @@ size_t early_map_page_clear(size_t physical){
//Clear the new allocated block of memory //Clear the new allocated block of memory
auto it = reinterpret_cast<size_t*>(virt); auto it = reinterpret_cast<size_t*>(virt);
std::fill(it, it + paging::PAGE_SIZE / sizeof(size_t), 0); std::fill_n(it, paging::PAGE_SIZE / sizeof(size_t), 0);
return virt; return virt;
} }