From cc1193087067c7e1105bd3d788520c034f5cf619 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Tue, 22 Dec 2009 16:49:53 +0100 Subject: Revert "[noncompiling commit] Started working on a segmented memory model" This reverts commit bfec696da052c8c9320773ca69927422efebe8c7. --- Source/Kernel/MemoryManager/KernelSegment.class.h | 25 ----------------------- 1 file changed, 25 deletions(-) delete mode 100644 Source/Kernel/MemoryManager/KernelSegment.class.h (limited to 'Source/Kernel/MemoryManager/KernelSegment.class.h') 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 -#include - -class KernelSegment : public Segment { - private: - Vector 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 -- cgit v1.2.3