~moody/barebones9

e290b0218a368a34f11a1a8ed4f7886461204377 — Moody 1 year, 5 months ago 7003870
Add README and LICENSE
2 files changed, 45 insertions(+), 0 deletions(-)

A LICENSE
A README
A LICENSE => LICENSE +19 -0
@@ 0,0 1,19 @@
Copyright (c) 20XX 9front

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

A README => README +26 -0
@@ 0,0 1,26 @@
This is a barebones kernel inspired by the OSdev wiki designed to
be a good starting point for kernel tinkering on 9front. There
are no requirments for compiling and creating the cdrom iso
outside of standard 9front utilities.

The content of the repo are:
	- l.s: 			Assembly bootstrap to move to long mode. This is copied from the 9front 9pc64 kernel.
	- kern.c: 		Kernel C source code.
	- 9bootproto:	Proto file for creating the cdrom iso.
	- mem.h:		Handful of #define's used for l.s, also copied from 9front 9pc64 kernel.
	- plan9.ini:	9boot configuration file for loading the kernel.


l.s and mem.h are vendored to get us into long mode and for setting the kernel up
to be multiboot compliant. It is worth noting that while being multiboot compliant,
our kernel still uses the a.out binary format, meaning qemu will not be able to load
it with the '-kernel' option. The iso includes the '9boot' bootloader for initial
startup and moving to 32bit protected mode.


compiling:
	; mk 

building an iso:
	; mk kern.iso