Removed some useless C++ files
This commit is contained in:
31
src/mmap.hpp
31
src/mmap.hpp
@@ -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
|
||||
@@ -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;
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
#ifndef ELF_H
|
||||
#define ELF_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user