diff options
author | Alexis211 <alexis211@gmail.com> | 2009-12-22 16:49:53 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-12-22 16:49:53 +0100 |
commit | cc1193087067c7e1105bd3d788520c034f5cf619 (patch) | |
tree | 33f31cf7459fe017c35a313c88e4bfcb6f00eb8a /Source/Kernel/MemoryManager/KernelSegment.class.h | |
parent | bfec696da052c8c9320773ca69927422efebe8c7 (diff) | |
download | Melon-cc1193087067c7e1105bd3d788520c034f5cf619.tar.gz Melon-cc1193087067c7e1105bd3d788520c034f5cf619.zip |
Revert "[noncompiling commit] Started working on a segmented memory model"
This reverts commit bfec696da052c8c9320773ca69927422efebe8c7.
Diffstat (limited to 'Source/Kernel/MemoryManager/KernelSegment.class.h')
-rw-r--r-- | Source/Kernel/MemoryManager/KernelSegment.class.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Source/Kernel/MemoryManager/KernelSegment.class.h b/Source/Kernel/MemoryManager/KernelSegment.class.h deleted file mode 100644 index 4d8205a..0000000 --- a/Source/Kernel/MemoryManager/KernelSegment.class.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef DEF_KERNEL_SEGMENT_CLASS_H -#define DEF_KERNEL_SEGMENT_CLASS_H - -#include <MemoryManager/Segment.proto.h> -#include <MemoryManager/PageDirectory.class.h> - -class KernelSegment : public Segment { - private: - Vector<PageDirectory*> m_pds; - page_table_t *tables[256]; - u32int tablesPhysical[256]; - - page_t* getPage(u32int addr); - - public: - seg_map_t map(PageDirectory *pd); - void unmap(PageDirectory *pd, seg_map_t *mapping) {} - bool handleFault(u32int addr, seg_map_t *mapping) { return false; } - - bool allocFrame(u32int addr); //false when page already was mapped to a frame - void identityMap(u32int addr); //Used only on paging initialisation - void freeFrame(u32int addr); -}; - -#endif |