diff --git a/src/mmap.hpp b/src/mmap.hpp deleted file mode 100644 index 0e91955..0000000 --- a/src/mmap.hpp +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef MMAP_H -#define MMAP_H - -#include "pageallocator.hpp" - -#define MMAP_RW 0x01 -#define MMAP_EXEC 0x02 -#define MMAP_SHARED 0x04 - -namespace kernelns -{ - -int mmap(void* start, size_t length, int flags); - -int mmap(void* start, physaddr_t p_start, size_t length, int flags); - -int mapPage(void* start, physaddr_t p_start, int flags); - -int munmap(void* start, size_t length); - -bool isMapped(void* addr); - -physaddr_t getPhysicalAddress(void* addr); - -int createAddressSpace(void* table); - -int loadAddressSpace(physaddr_t table); - -} - -#endif \ No newline at end of file diff --git a/src/module.cpp b/src/module.cpp deleted file mode 100644 index 08ae855..0000000 --- a/src/module.cpp +++ /dev/null @@ -1,39 +0,0 @@ -#include "module.hpp" -#include "util.hpp" - -using namespace kernelns; - -Module::Module() -{ - m_start = 0; - m_end = 0; - m_command = NULL; -} - -Module::Module(physaddr_t start, physaddr_t end, const char* command) -{ - m_start = start; - m_end = end; - m_command = new char[strlen(command) + 1]; - strcpy(m_command, command); -} - -Module::~Module() -{ - delete[] m_command; -} - -physaddr_t Module::getStart() const -{ - return m_start; -} - -physaddr_t Module::getEnd() const -{ - return m_end; -} - -const char* Module::getCommand() const -{ - return m_command; -} \ No newline at end of file diff --git a/src/module.hpp b/src/module.hpp deleted file mode 100644 index 2d3b024..0000000 --- a/src/module.hpp +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef ELF_H -#define ELF_H - -#include - -#include "systypes.hpp" - -namespace kernelns -{ - -class Module -{ -public: - - Module(); - - Module(physaddr_t start, physaddr_t end, const char* command); - - ~Module(); - - physaddr_t getStart() const; - - physaddr_t getEnd() const; - - const char* getCommand() const; - -private: - - physaddr_t m_start; - - physaddr_t m_end; - - char* m_command; - -}; - -} - -#endif \ No newline at end of file diff --git a/src/sharedblock.hpp b/src/sharedblock.hpp deleted file mode 100644 index e9fe3d6..0000000 --- a/src/sharedblock.hpp +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef SHAREDBLOCK_H -#define SHAREDBLOCK_H - -#include "memoryregion.hpp" - -class SharedBlock : public MemoryRegion -{ -public: - - unsigned int getFlags() const; - -private: - - unsigned int m_flags; - -}; - -#endif \ No newline at end of file