diff options
author | Alexis211 <alexis211@gmail.com> | 2009-12-22 16:48:52 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-12-22 16:48:52 +0100 |
commit | bfec696da052c8c9320773ca69927422efebe8c7 (patch) | |
tree | 325efd88744344cd732d6e3d09bfebf3cb5847a4 /Source/Kernel/TaskManager | |
parent | 2c23da1cf398aef420130dde1b86e4c474e3cacb (diff) | |
download | Melon-bfec696da052c8c9320773ca69927422efebe8c7.tar.gz Melon-bfec696da052c8c9320773ca69927422efebe8c7.zip |
[noncompiling commit] Started working on a segmented memory model
Diffstat (limited to 'Source/Kernel/TaskManager')
-rw-r--r-- | Source/Kernel/TaskManager/V86/V86.ns.cpp | 7 | ||||
-rw-r--r-- | Source/Kernel/TaskManager/V86/V86.ns.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/Source/Kernel/TaskManager/V86/V86.ns.cpp b/Source/Kernel/TaskManager/V86/V86.ns.cpp index f70728c..f6cc641 100644 --- a/Source/Kernel/TaskManager/V86/V86.ns.cpp +++ b/Source/Kernel/TaskManager/V86/V86.ns.cpp @@ -19,13 +19,6 @@ 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; diff --git a/Source/Kernel/TaskManager/V86/V86.ns.h b/Source/Kernel/TaskManager/V86/V86.ns.h index ec8e928..d30c08e 100644 --- a/Source/Kernel/TaskManager/V86/V86.ns.h +++ b/Source/Kernel/TaskManager/V86/V86.ns.h @@ -26,7 +26,6 @@ namespace V86 { void run(v86_function_t& entry, v86_regs_t ®s); void biosInt(u8int int_no, v86_regs_t ®s); - void map(Process* p = 0); //Maps lower 1MB of virtual memory to physical memory (lower 1MB as well) u16int allocSeg(u16int size); void* alloc(u16int size); } |