scheduler_tasks.mx raw

   1  //go:build scheduler.tasks
   2  
   3  package runtime
   4  
   5  var systemStack uintptr
   6  
   7  // Implementation detail of the internal/task package.
   8  // It needs to store the system stack pointer somewhere, and needs to know how
   9  // many cores there are to do so. But it doesn't know the number of cores. Hence
  10  // why this is implemented in the runtime.
  11  func systemStackPtr() *uintptr {
  12  	return &systemStack
  13  }
  14