mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 03:54:01 +00:00
add device/uefi and device/amd64
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//go:build i386 || amd64
|
||||
|
||||
package uefi
|
||||
|
||||
import "device/amd64"
|
||||
|
||||
func Ticks() uint64 {
|
||||
return amd64.AsmReadRdtsc()
|
||||
}
|
||||
|
||||
func CpuPause() {
|
||||
amd64.AsmPause()
|
||||
}
|
||||
|
||||
func getTSCFrequency() uint64 {
|
||||
return amd64.InternalGetPerformanceCounterFrequency()
|
||||
}
|
||||
Reference in New Issue
Block a user