summaryrefslogtreecommitdiffstats
path: root/tapset/context.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/context.stp')
-rw-r--r--tapset/context.stp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tapset/context.stp b/tapset/context.stp
index 44b52e1c..98571d9e 100644
--- a/tapset/context.stp
+++ b/tapset/context.stp
@@ -69,6 +69,10 @@ function cpuid:long () %{
THIS->__retvalue = current->thread_info->cpu;
%}
+function cpu:long () %{
+ THIS->__retvalue = current->thread_info->cpu; /* smp_processor_id()? */
+%}
+
function print_stack(stk:string) %{
char *ptr = THIS->stk;
char *tok = strsep(&ptr, " ");