github.com/primecitizens/pcz/std@v0.2.1/core/thread/thread_notpcz.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  //go:build !pcz
     5  
     6  package thread
     7  
     8  import (
     9  	stdgo "github.com/primecitizens/pcz/std/builtin/go"
    10  	"github.com/primecitizens/pcz/std/core/assert"
    11  )
    12  
    13  // GetTLSBaseAddress is not supported for non-pcz toolchain
    14  func GetTLSBaseAddress() uintptr {
    15  	assert.Throw("not", "supported")
    16  	return 0
    17  }
    18  
    19  // G is not supported for non-pcz toolchain
    20  func G() *stdgo.GHead {
    21  	assert.Throw("not", "supported")
    22  	return nil
    23  }
    24  
    25  // SetG is not supported for non-pcz toolchain
    26  func SetG(g *stdgo.GHead) {
    27  	assert.Throw("not", "supported")
    28  }
    29  
    30  // Topframe is not supported for non-pcz toolchain
    31  func Topframe(arg1, sp, pc uintptr) {
    32  	assert.Throw("not", "supported")
    33  }