I try to adapt go runtime to a libOS, and I need to get register GS value, which is used to calculate syscall function entry in libOS. But I can’t find any example in Go runtime.
@superajun-wsj I don’t think that register is known to Go’s assembler. The quick guide to Go’s assembler says to manually write the byte sequences for instructions the assembler doesn’t understand: https://golang.org/doc/asm#unsupported_opcodes
Thank you very much for your response, it indeed helped me.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.