diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-07 01:55:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-07 01:55:49 +0000 |
commit | c19bd769205d1847639eaddcd897058d8b7218da (patch) | |
tree | 7ab76111168396659b37399467b30967769e1abc /libgo/runtime | |
parent | 598fd331d0ea4bb6435d1045ff6c219f098db1a7 (diff) | |
download | gcc-c19bd769205d1847639eaddcd897058d8b7218da.zip gcc-c19bd769205d1847639eaddcd897058d8b7218da.tar.gz gcc-c19bd769205d1847639eaddcd897058d8b7218da.tar.bz2 |
libgo: Add back tests of syscall time.
From-SVN: r182075
Diffstat (limited to 'libgo/runtime')
-rw-r--r-- | libgo/runtime/proc.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c index e5c01f5..88831d4 100644 --- a/libgo/runtime/proc.c +++ b/libgo/runtime/proc.c @@ -1156,6 +1156,26 @@ runtime_malg(int32 stacksize, byte** ret_stack, size_t* ret_stacksize) return newg; } +/* For runtime package testing. */ + +void runtime_testing_entersyscall(void) + __asm__("libgo_runtime.runtime.entersyscall"); + +void +runtime_testing_entersyscall() +{ + runtime_entersyscall(); +} + +void runtime_testing_exitsyscall(void) + __asm__("libgo_runtime.runtime.exitsyscall"); + +void +runtime_testing_exitsyscall() +{ + runtime_exitsyscall(); +} + G* __go_go(void (*fn)(void*), void* arg) { @@ -1330,6 +1350,17 @@ runtime_lockedOSThread(void) return g->lockedm != nil && m->lockedg != nil; } +// for testing of callbacks + +_Bool runtime_golockedOSThread(void) + asm("libgo_runtime.runtime.golockedOSThread"); + +_Bool +runtime_golockedOSThread(void) +{ + return runtime_lockedOSThread(); +} + // for testing of wire, unwire uint32 runtime_mid() |