Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Im probably blind here, but I dont see any difference...
Your code does the same as mine, except it passes the parameters on the stack. The end result is still setting CS=0x174, and executing wrmsr--which is what my code does.
The name of the option is "--enable-sep" the rest was just the explanation ./configure --help showed. Besides that 2.0.2 is a little bit out-of-date, don't you think so?
bluecode wrote:The name of the option is "--enable-sep" the rest was just the explanation ./configure --help showed. Besides that 2.0.2 is a little bit out-of-date, don't you think so?
I never actually compiled Bochs before--its a pain as I am having trouble finding a compatible toolset. Ugh. Oh well. MSVC++ 2005 fails to compile, Cygwin make failes to work :/ Then again, Im a little tired right now
(Im just recieving 8 compile errors from MSVC++2005). I can fix them, but then recieve an odd error from MSVC++2005--Ill display it here when I get the chance (and do a little more research on it)
Thanks for letting me know. I will attempt to get it to build through cygwin (I never personally liked cygwin--Im not sure why...)
Never mind--everything seems to be going good so far (Besides the millions of warnings MSVC++ spits out, and that I had to change a small manifest setting...ugh)
...And, this is Bochs 2.3, not the earlier version
Thanks!
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
At first I was having problems with the debug build (It halted while executing the BIOS), but after trying release build, everything seems to be working--Including setting the MSR.
...Guess it was Bochs after all.
Thanks for the help!
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Over here, the bochs sources work out of the box on cygwin. Are you sure you have all the packages needed for compiling programs (autotools, make, gcc+binutils, flex, bison), and in the setup the configuration set to unix line endings and binary format?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Would someone with visual studio and cygwin be interested in a linux binary?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
I built Bochs under Cygwin with no problems at all. The only bumps in the process were the configuration options, which are not very well described in the manual.
Would someone with visual studio and cygwin be interested in a linux binary?
I would, if it's a program I've been working on that I want to port to Linux and don't have a spare distro lying around .