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

Set m.curg = g0

This commit is contained in:
Achilleas Anagnostopoulos 2017-07-14 07:45:56 +01:00
parent bc52b65615
commit 9567f259bd

View File

@ -95,6 +95,7 @@ _rt0_64_setup_go_runtime_structs:
; Link m0 to the g0
extern runtime.m0
mov rbx, runtime.m0
mov qword [rbx+GO_M_CURG], rsi ; m.curg = g0
mov qword [rbx+GO_M_G0], rsi ; m.g0 = g0
mov qword [rsi+GO_G_M], rbx ; g.m = m