krfkeith / coffee-os

Automatically exported from code.google.com/p/coffee-os
2 stars 1 forks source link

VMM and paging #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Golly, what HELL this is trying to implement correctly.

Yet, still when we do so, init fails.
it either GPFs or reboots qemu. Code does NOT triple fault.QEMU catches this 
and the OS catches a double fault.

Code to init VMM has been commented out.
As a result interrupts now work and so does the rest of the OS.
Heap is enabled at kernel level to allow FLAT mode memory programming instead 
for the moment.

AKA: drivers and other programming can continue until problem is fixed.
THIS is a SERIOUS issue with any decent OS.

Original issue reported on code.google.com by frazzled...@gmail.com on 3 Jul 2011 at 10:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
quickly becoming a wont fix issue..I dont know why this isnt working and the 
other devs seem to think that the C code is superior because it "just works" 
but no one knows exactly WHY. Even looking at the assembler tells you why.

This is not due to using the C language and I have limits that FPC devs(and 
Linux C devs also) have written me into a box in regards to what can be done to 
get this code to work corrrectly.Starting with dos code from Pascal/FPC is not 
much of an option as that code is borked also in places.(see readkey with DPMI 
in 32bit FPC DOS apps, it GPFs running code, though there is an easy workaround 
using [readportb(60)and 1])

Original comment by frazzled...@gmail.com on 3 Jul 2011 at 10:30

GoogleCodeExporter commented 9 years ago
taking another look..appears kernel level heap is for vmm init and user level 
heap is "just there" for anything else.

Have to look at the older code for a minute...maybe we were just missing a 
proper heap....and a few functions.

The pointers to page directories, however, DRIVE me NUTS.
...and you need a longword of such for threading init.... hackish code at best, 
so I hope it works..

Original comment by frazzled...@gmail.com on 9 Aug 2011 at 8:11

GoogleCodeExporter commented 9 years ago

Original comment by frazzled...@gmail.com on 15 Aug 2011 at 9:22