summaryrefslogtreecommitdiff
path: root/Source/Kernel/TaskManager/V86/V86.ns.cpp
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-12-22 16:49:53 +0100
committerAlexis211 <alexis211@gmail.com>2009-12-22 16:49:53 +0100
commitcc1193087067c7e1105bd3d788520c034f5cf619 (patch)
tree33f31cf7459fe017c35a313c88e4bfcb6f00eb8a /Source/Kernel/TaskManager/V86/V86.ns.cpp
parentbfec696da052c8c9320773ca69927422efebe8c7 (diff)
downloadMelon-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/TaskManager/V86/V86.ns.cpp')
-rw-r--r--Source/Kernel/TaskManager/V86/V86.ns.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Kernel/TaskManager/V86/V86.ns.cpp b/Source/Kernel/TaskManager/V86/V86.ns.cpp
index f6cc641..f70728c 100644
--- a/Source/Kernel/TaskManager/V86/V86.ns.cpp
+++ b/Source/Kernel/TaskManager/V86/V86.ns.cpp
@@ -19,6 +19,13 @@ void biosInt(u8int int_no, v86_regs_t &regs) {
while (!ret.finished) Task::currThread()->sleep(10);
}
+void map(Process* p) {
+ if (p == 0) p = Task::currProcess();
+ for (u32int i = 0x00000; i < 0xFFFFF; i += 0x1000) {
+ p->getPagedir()->allocFrame(i, true, true);
+ }
+}
+
u16int allocSeg(u16int length) {
if (length & 0xF) length = (length & 0xFFFF0) + 0x10;
u16int segments = length / 16;