1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Fix linter errors

This commit is contained in:
Achilleas Anagnostopoulos 2017-05-15 06:55:31 +01:00
parent 1c17562f07
commit cb0975c9c4
4 changed files with 6 additions and 7 deletions

View File

@ -67,7 +67,7 @@ func (t *Vt) Write(data []byte) (int, error) {
return len(data), nil return len(data), nil
} }
// Write implements io.ByteWriter. // WriteByte implements io.ByteWriter.
func (t *Vt) WriteByte(b byte) error { func (t *Vt) WriteByte(b byte) error {
switch b { switch b {
case '\r': case '\r':

View File

@ -7,7 +7,9 @@ import (
) )
var ( var (
egaConsole = &console.Ega{} egaConsole = &console.Ega{}
// ActiveTerminal points to the currently active terminal.
ActiveTerminal = &tty.Vt{} ActiveTerminal = &tty.Vt{}
) )

View File

@ -4,6 +4,7 @@ import "unsafe"
type tagType uint32 type tagType uint32
// nolint
const ( const (
tagMbSectionEnd tagType = iota tagMbSectionEnd tagType = iota
tagBootCmdLine tagBootCmdLine
@ -100,7 +101,7 @@ const (
memUnknown memUnknown
) )
/// MemoryMapEntry describes a memory region entry, namely its physical address, // MemoryMapEntry describes a memory region entry, namely its physical address,
// its length and its type. // its length and its type.
type MemoryMapEntry struct { type MemoryMapEntry struct {
// The physical address for this memory region. // The physical address for this memory region.

View File

@ -26,8 +26,4 @@ func Kmain(multibootInfoPtr uintptr) {
hal.InitTerminal() hal.InitTerminal()
hal.ActiveTerminal.Clear() hal.ActiveTerminal.Clear()
early.Printf("Starting gopher-os\n") early.Printf("Starting gopher-os\n")
// Prevent Kmain from returning
for {
}
} }