2018-04-04 09:32:15 +02:00

34 lines
876 B
C++

//=======================================================================
// Copyright Baptiste Wicht 2013-2018.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=======================================================================
/*
* The implementation of the memory detection is made in boot_16.cpp
* The finalization of the memory detection is made in e820.cpp once in long
* mode.
*/
#ifndef E820_HPP
#define E820_HPP
#include "e820_types.hpp"
namespace e820 {
//Must be called by the kernel to transform e820 entries into mmap entries
void finalize_memory_detection();
bool mmap_failed();
uint64_t mmap_entry_count();
const mmapentry& mmap_entry(uint64_t i);
const char* str_e820_type(uint64_t type);
size_t available_memory();
} //end of namespace e820
#endif