From: Daniel S. <dan...@ya...> - 2006-08-03 17:02:13
|
I see, I thought the linux kernel ran in ring 3 inside the colinux_daemon.exe and linux.sys just provided system services. If the linux kernel is indeed running in ring 0, then it would have to be a 64-bit version as the x64 processor doesn't support 32-bit code executing in ring 0. So if the linux kernel runs in ring 0, then what does colinux_daemon.exe do? Also, how does the windows kernel keep control of context switches? Dan > -----Original Message----- > From: col...@li... [mailto:colinux-devel- > bo...@li...] On Behalf Of peter green > Sent: Wednesday, August 02, 2006 6:25 PM > To: Daniel Slater; col...@li... > Subject: Re: [coLinux-devel] x64 version of CoLinux > > > > At work, I currently have 2 identical machines. One runs 64-bit windows > > and the other runs 32-bit windows. My 32-bit apps run just as fast on > > 64-bit windows as they do under 32-bit windows. The reason for this is > > that the 64-bit versions of the processor are designed from the ground > > up to allow running 64-bit and 32-bit apps side by side. > "Apps" aren't the problem. > > > Switching from > > a 64-bit app to a 32-bit app is part of the context switch that happens > > when an app becomes current. > yep but to run an i386 linux kernel (which lets not forget runs in ring 0 > with the colinux driver, NOT in ring 3 with the colinux daemon) would > require completely switching the processor to 32 bit mode, not just > switing > to "32bit app on 64 bit os" mode. > > so the facts (to the best of my knowlage) are: > > 1: the interface code between the driver and the linux kernel would almost > certainly have to be rewritten for 64 bit windows regardless of if you > chose > to use a 64 bit linux kernel or 32 bit linux kernel. > > 2: using a 32 bit linux kernel would greatly complicate (and possiblly > slow) > the switing between linux and windows > > 3: a 64 bit linux kernel can run both 32 and 64 bit linux apps, a 32 bit > linux kernel can't. > > 4: a 32 bit linux kernel might save a tiny bit of porting of linux side > drivers but i imagine theese are fairly portable anyway. > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > coLinux-devel mailing list > coL...@li... > https://lists.sourceforge.net/lists/listinfo/colinux-devel |