diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-08-28 20:39:32 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-08-28 20:39:32 +0000 |
commit | 32b1d51f16fe56b34e979fcfba4bc74dbd3592a9 (patch) | |
tree | cd54b1786061eb18e64ce26e6392df3096b5ba35 /libgo/go/runtime/stubs.go | |
parent | c980510a5ab79614fcbaf5f411b1273dc9a8c7ca (diff) | |
download | gcc-32b1d51f16fe56b34e979fcfba4bc74dbd3592a9.zip gcc-32b1d51f16fe56b34e979fcfba4bc74dbd3592a9.tar.gz gcc-32b1d51f16fe56b34e979fcfba4bc74dbd3592a9.tar.bz2 |
runtime: move osinit to Go
This is a step toward updating libgo to 1.13. This adds the 1.13
version of the osinit function to Go code, and removes the
corresponding code from the C runtime. This should simplify future updates.
Some additional 1.13 code was brought in to simplify this change.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/191717
From-SVN: r275010
Diffstat (limited to 'libgo/go/runtime/stubs.go')
-rw-r--r-- | libgo/go/runtime/stubs.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libgo/go/runtime/stubs.go b/libgo/go/runtime/stubs.go index e00d759..a81bf92 100644 --- a/libgo/go/runtime/stubs.go +++ b/libgo/go/runtime/stubs.go @@ -333,20 +333,6 @@ func rethrowException() // used by the stack unwinder. func unwindExceptionSize() uintptr -// Called by C code to set the number of CPUs. -//go:linkname setncpu runtime.setncpu -func setncpu(n int32) { - ncpu = n -} - -// Called by C code to set the page size. -//go:linkname setpagesize runtime.setpagesize -func setpagesize(s uintptr) { - if physPageSize == 0 { - physPageSize = s - } -} - const uintptrMask = 1<<(8*sys.PtrSize) - 1 type bitvector struct { |