Page 4 of 4

Re: Idea - Gaming OS

Posted: Sat Jun 03, 2006 11:00 pm
by Dex
That is wierd. it should not do that i will test it in DosBOX and see if i get the same.

Re: Idea - Gaming OS

Posted: Sat Jun 03, 2006 11:00 pm
by earlz
yea I have no idea how thats possible but anyway;

Do you have a page allocator and/or malloc and free

Re: Idea - Gaming OS

Posted: Sat Jun 03, 2006 11:00 pm
by Dex
On real pc it would crash, but not on emulator ?.
No i do not enable paging or have any form of MM, other than CLI programs are loaded to 2mb, and can use all memory from 2mb to top of ram, GUI program are loaded to 8MB and can use from 8MB to top of ram.

NOTE: CLI programs use *.dex and GUI programs use *.gex, also you can load modules for drivers, these are loaded to top of memory, and top of memory is set to top of memory - module size, they are also entered into a module list.

This is to keep things simple, as Dex4u was designed to be like the Xbox OS,
see here:
http://www.extremetech.com/article2/0,1 ... 116,00.asp
which also does not use paging or MM other than whats in the game.

Re: Idea - Gaming OS

Posted: Sat Jun 03, 2006 11:00 pm
by earlz
ok then i just was thinking for memory allocation because you can't just pick random address's to hold stuff

I would've thought it would be better if page allocation was supported at kernel level but anyway

Re: Idea - Gaming OS

Posted: Sat Jun 03, 2006 11:00 pm
by Dex
For multitasking yes, but for single-tasking not needed.
Ring0 single-tasking is like a surgeon, with a scalpel, you can cut your fingars off or save lives.
Ring3 multi-tasking is like having a blunt scalpel.