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:
parent
1c17562f07
commit
cb0975c9c4
@ -67,7 +67,7 @@ func (t *Vt) Write(data []byte) (int, error) {
|
||||
return len(data), nil
|
||||
}
|
||||
|
||||
// Write implements io.ByteWriter.
|
||||
// WriteByte implements io.ByteWriter.
|
||||
func (t *Vt) WriteByte(b byte) error {
|
||||
switch b {
|
||||
case '\r':
|
||||
|
@ -7,7 +7,9 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
egaConsole = &console.Ega{}
|
||||
egaConsole = &console.Ega{}
|
||||
|
||||
// ActiveTerminal points to the currently active terminal.
|
||||
ActiveTerminal = &tty.Vt{}
|
||||
)
|
||||
|
||||
|
@ -4,6 +4,7 @@ import "unsafe"
|
||||
|
||||
type tagType uint32
|
||||
|
||||
// nolint
|
||||
const (
|
||||
tagMbSectionEnd tagType = iota
|
||||
tagBootCmdLine
|
||||
@ -100,7 +101,7 @@ const (
|
||||
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.
|
||||
type MemoryMapEntry struct {
|
||||
// The physical address for this memory region.
|
||||
|
@ -26,8 +26,4 @@ func Kmain(multibootInfoPtr uintptr) {
|
||||
hal.InitTerminal()
|
||||
hal.ActiveTerminal.Clear()
|
||||
early.Printf("Starting gopher-os\n")
|
||||
|
||||
// Prevent Kmain from returning
|
||||
for {
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user