Sponsored Content
Top Forums Programming Building an operating system for senior project? Post 302444733 by Corona688 on Thursday 12th of August 2010 03:55:19 PM
Old 08-12-2010
How "serious" an OS is this? Is it a theoretical construct, or does it need to fully utilize a modern system?

If you could get away with writing in 16-bit real mode, your work would be miles easier -- you could write a "hello world" without having to worry about disk drivers, keyboard interrupts, timing controllers, or any protected-mode histrionics by relying on BIOS I/O calls. Once you've got your "hello world" working, you can start building the structure from there. I'd almost say you have to start this way, getting a tinkertoy version of your OS running in 640K might happen before you manage to properly switch into real mode. If people really like it, they could reinvent it in protected mode themselves, like how Minux inspired Linux.

Either way though, getting a bootloader to load a kernel is way different than getting an OS to load a program. Some "magic" code is needed, and you need to put the right things in the right places. Play around with the GRUB bootloader, and have a look at the source code for memtest86 -- it's a small program that loads and runs raw from the bootloader too.

Last edited by Corona688; 08-12-2010 at 05:03 PM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix Operating System

I need the Unix operating system on disc as im new to unix. Im studying unix and x windows next year at Sheffield University and would like to get a head start. Any suggestions would be appreciated (2 Replies)
Discussion started by: jeffersno1
2 Replies

2. UNIX for Dummies Questions & Answers

Operating System

Which is much more powerful as an operating system: 1. Windows 2000 2. Windows 98 3. Windows XP 4. Windows ME 5. Unix 6. Linux and why is it much more powerful than the other operating systems that i have mentioned. thanks for your info... (1 Reply)
Discussion started by: alecks1975
1 Replies

3. Filesystems, Disks and Memory

Fabric Operating System

Would any of your gentlemen have come across a decent reference for the FOS in your wanderings? Brocade just seems to want to sell me classes and FAN books :/ (0 Replies)
Discussion started by: Eronysis
0 Replies

4. UNIX for Dummies Questions & Answers

Building project using MAKE

Hi, I have a build script in perl to build projects in my team.It is using MakeMaker.I have a problem now.When I build a project and a tarball is created,I untar the tarball to get the files.Now the files have "rwx-r_x-r_x" permssions. While I want "rwx-rwx-rwx" for all files. i am not too sure... (0 Replies)
Discussion started by: abhinavsinha
0 Replies

5. Solaris

building solaris-based enterprise router-firewall project

hi guys, its been a while since my last visit here, could not keep up the pace on this ever changing industry :) i'd just doing my home research under vmware to make a solaris-based router-firewall using zones - doing a lot of reading about zones & review solaris zone functionality. and... (4 Replies)
Discussion started by: stdout
4 Replies

6. Homework & Coursework Questions

Operating system LINUX

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a C program that accepts 3 parameters. Each parameter indicates the quantity of product to be produced.... (1 Reply)
Discussion started by: paradise
1 Replies

7. UNIX for Advanced & Expert Users

Best Operating System

Hello All, I want to install Linux on my machine, so please tell me one thing which is the best to install- 1.)Red Hat 2.)Cent OS 3.)Red Hat 4.)Ubuntu 5.)Fedora except that if there is any please tell me. (1 Reply)
Discussion started by: parthmittal2007
1 Replies

8. UNIX for Advanced & Expert Users

What's my Operating System

Can we know the operating given the IP address or DNS of the host. All I have is file://myserver/myapp (4 Replies)
Discussion started by: mohtashims
4 Replies

9. UNIX and Linux Applications

Pick Operating System

Anyone know anything about "Advanced Plus Operating Environment". Preferably release 10 Revision 522Gcd probably dated 2003. (4 Replies)
Discussion started by: jgt
4 Replies
KGMON(8)						      System Manager's Manual							  KGMON(8)

NAME
kgmon - generate a dump of the operating system's profile buffers SYNOPSIS
/usr/sbin/kgmon [ -b ] [ -h ] [ -r ] [ -p ] [ system ] [ memory ] DESCRIPTION
Kgmon is a tool used when profiling the operating system. When no arguments are supplied, kgmon indicates the state of operating system profiling as running, off, or not configured. (see config(8)) If the -p flag is specified, kgmon extracts profile data from the operating system and produces a gmon.out file suitable for later analysis by gprof(1). The following options may be specified: -b Resume the collection of profile data. -h Stop the collection of profile data. -p Dump the contents of the profile buffers into a gmon.out file. -r Reset all the profile buffers. If the -p flag is also specified, the gmon.out file is generated before the buffers are reset. If neither -b nor -h is specified, the state of profiling collection remains unchanged. For example, if the -p flag is specified and pro- file data is being collected, profiling will be momentarily suspended, the operating system profile buffers will be dumped, and profiling will be immediately resumed. FILES
/vmunix - the default system /dev/kmem - the default memory SEE ALSO
gprof(1), config(8) DIAGNOSTICS
Users with only read permission on /dev/kmem cannot change the state of profiling collection. They can get a gmon.out file with the warn- ing that the data may be inconsistent if profiling is in progress. 4.2 Berkeley Distribution November 17, 1996 KGMON(8)
All times are GMT -4. The time now is 11:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy