mirror of
https://github.com/taigrr/gopher-os
synced 2025-01-18 04:43:13 -08:00
The rt0 code implements a dedicated function for initializing the Go runtime structures. Instead of reserving space for a dummy g struct, the rt0 code now uses the g0 and m0 symbols defined by the runtime package. In addition to setting up g0, the rt0 also sets up the m0 struct and links it to g0. Setting up m0 is a requirement for properly bootstapping the malloc-related code in the following commits
Description
Languages
Go
84.9%
ASL
10.2%
Assembly
4%
Makefile
0.9%