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
|
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':
|
||||||
|
@ -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{}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
@ -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 {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user