Home arrow Forums
OSDEV Forums  


anonymous
Visitor

Fresh Osdever
Posts: 0
graphgraph
Karma: 0  
MSVC Kernel Framework - 2005/12/29 23:51 I have visited the site and thought I would throw back up a old framework. I had extended this framework into a almost complete kernel. I still think could be very useful to someone who wants to jump right into developing a kernel using bochs under windows with MSVC 6 or MSVC Express. I have also updated the archive to include a BATCH file so as soon as you unzip it you can run the kernel in bochs! No crazy stuff. No complex commands. Its easy. Also you can simply open the solution file and start tinkering with the kernel, if you screw it up delete it and reunzip the kernel. The kernel included has nothing but a initialization and then displays letters across video memory just to show that it booted correctly.

You may find the most recent zip amoung other related things on this UNSTABLE link.
http://mcguire.sytes.net:8080
You may always find the older zip(see below) here.
http://www.freewebs.com/kmcguire/hod/files/kits/msvcoek.zip
-Freewebs does not allow hotlinking. So paste that in a new explorer window.

As for the older version on freewebs.

I was playing around making sure everything worked and I noticed that global varibles were not working and returning the value 0x00. Im not sure for the cause but the work around is as following.

Edit the 2ndstage.cpp
Find the line that says:
hod_Relocate(0x900, 0xFA000);
Change that line to:
hod_Relocate(0x900, 0x1FC000);

You can try lower values or different. It seems the memory area at 0xFA000 is speacil in bochs and possibly on other systems. Sorry.


If anyone has ANY problems downloading and using this, please, let me know I promise I won't get mad.

kmcguire3413@hotmail.com
  | | The administrator has disabled public write access.
OSDEV
Community
Advertisement
   
root
Moderator

Moderator
Posts: 121
graphgraph
Karma: 1  
Re: MSVC Kernel Framework - 2005/12/30 00:34 Thanks for your impressive contribution!

If you want a stable hosting for your files, we can include them inour Download section.
  | | The administrator has disabled public write access.
anonymous
Visitor

Fresh Osdever
Posts: 0
graphgraph
Karma: 0  
Re: MSVC Kernel Framework - 2005/12/30 03:35 That sounds like a great idea to me. I like it.
  | | The administrator has disabled public write access.
root
Moderator

Moderator
Posts: 121
graphgraph
Karma: 1  
Re: MSVC Kernel Framework - 2005/12/30 05:57 Excellent!

Please register as a member, then login and use the form located here http://www.osdcom.info/upload.php

Thanks again!
  | | The administrator has disabled public write access.
DeadLock
User

Fresh Osdever
Posts: 3
graphgraph
Karma: 0  
Re: MSVC Kernel Framework - 2005/12/30 19:23 Dowload link doesn't appear to be valid.
  | | The administrator has disabled public write access.
DeadLock
User

Fresh Osdever
Posts: 3
graphgraph
Karma: 0  
Re: MSVC Kernel Framework - 2005/12/30 20:58 Downloaded from unstable link went fine.
Built on VS 2005. Project conversion to VS 2005 went fine. There's an extra hardcoded include directory, but that didn't affect anything.
Floppy.img boots in VMWare WS 5.x till processor hlt.
Very nice.

DL
  | | The administrator has disabled public write access.
kmcguire
User

Junior Osdever
Posts: 12
graphgraph
Karma: 0  
Re: MSVC Kernel Framework - 2005/12/30 22:03 Thanks, I removed the include directory from the msvcoek.express.zip
I am unable to correct the msvcoek.zip, since its format is for MSVC6.
I am so HAPPY someone actually tested it and posted back, thanks!
I just want someone to be able to use it.
  | | The administrator has disabled public write access.
root
Moderator

Moderator
Posts: 121
graphgraph
Karma: 1  
Re: MSVC Kernel Framework - 2005/12/31 11:50 DeadLock, thanks for pointing out the problem.

I fixed the link and you can check it out here: http://www.osdcom.info/download.php?view.154
  | | The administrator has disabled public write access.
kmcguire
User

Junior Osdever
Posts: 12
graphgraph
Karma: 0  
Re: MSVC Kernel Framework - 2006/01/05 00:54 I have done a complete revision to the framework.

It is now the:
Microsoft Visual C++ Express 32BIT Kernel Framework

I only have express installed. You can still use earlier versions however, you will need to download the options.txt and setup the solution and project by hand.


The kernel is now Multi-Boot Compliant, and can be loaded by GRUB.
It no longer needs ANY other programs to help format the kernel.
It uses a stub with source code in the archive to perform any boot initialization that GRUB can not perform.
It supports static and global varibles. (For Once I can use strings!)
It includes a Virtual Floppy driver for WinNT(XP/2K).
It includes BOCHS, preconfigured to use drive A: for boot.
It include nasm, presetup to compile the stub code.
It includes Solar's grub_disk.img.
It has not been thoughly tested, but any bugs have to be minor. (It comes with all the source.)
It uses John Fine's gdt.inc code.


http://my.execpc.com/~geezer/os/
http://www.mega-tokyo.com/forum/index.php?board=1;action=display;threadid=8810; start=msg75930#msg75930

So the bottom line is, this archive, now contains the real deal for writting a kernel with MSVC++. No tricks. Done the right way.

I don't care if you make money from it!

(Be patient this link will work. Sometimes it does go down.)
http://mcguire.sytes.net:8080/

I hope I got everything.
  | | The administrator has disabled public write access.
DeadLock
User

Fresh Osdever
Posts: 3
graphgraph
Karma: 0  
Re: MSVC Kernel Framework - 2006/01/22 15:25 Interesting improvements. I'll take a look as soon as I can d/l it from your site. You may want to consider uploading to OSDEV for wider distribution.

-DL
  | | The administrator has disabled public write access.

A WebArticles site. Sponsored by Evoleto. Motorola V525 / Business Directory / Delaware Incorporation / Home Made Bazaar