mirror of
https://github.com/taigrr/gopher-os
synced 2025-01-18 04:43:13 -08:00
When converting strings to []byte so that they can be used with the tty io.Writer interface Go calls a runtime method called "stringtoslicebyte". If the input length exceeds a particular size then this method will allocate a new []byte and copy the data into it. This obviously causes our kernel to crash. To fix this, all early_fmt functions have been changed to iterate any string arguments and output them to the active TTY one byte at a time.
Description
Languages
Go
84.9%
ASL
10.2%
Assembly
4%
Makefile
0.9%