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/TaskManager/V86/V86.ns.cpp | |
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/TaskManager/V86/V86.ns.cpp')
-rw-r--r-- | Source/Kernel/TaskManager/V86/V86.ns.cpp | 7 |
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 ®s) { 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; |