Help us shape the future of Go! Take the 2026 Go Developer Survey

kernel

package module
v0.0.0-...-61643a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2015 License: MIT Imports: 1 Imported by: 0

README

bootgo

A barebones OS kernel written in go

The kernel contains some code modified from osdev barebones tutorial http://wiki.osdev.org/Bare_Bones

setup

To compile bootgo You need a gccgo cross-compiler(my gccgo version is 5.2.0)

  1. build a target i386/i686 gcc cross-compiler with go enabled, follow the article http://wiki.osdev.org/GCC_Cross-Compiler (gcc 5.2.0 is recommended)

  2. install nasm from your repositories

  3. install qemu for test

compiler & run!

  1. compile: make GCC=i686-elf-gcc GCCGO=i686-elf-gccgo, replace GCC and GCCGO with your binary name

  2. run on qemu: make run-qemu QEMU=qemu-system-i386, replace QEMU with your target binary name

Documentation

Index

Constants

View Source
const (
	COLOR_BLACK = iota
	COLOR_BLUE
	COLOR_GREEN
	COLOR_CYAN
	COLOR_RED
	COLOR_MAGENTA
	COLOR_BROWN
	COLOR_LIGHT_GREY
	COLOR_DARK_GREY
	COLOR_LIGHT_BLUE
	COLOR_LIGHT_GREEN
	COLOR_LIGHT_CYAN
	COLOR_LIGHT_RED
	COLOR_LIGHT_MAGENTA
	COLOR_LIGHT_BROWN
	COLOR_WHITE
)
View Source
const (
	VGA_WIDTH  = 80
	VGA_HEIGHT = 25
)

Variables

This section is empty.

Functions

func Main

func Main()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL