From 3a5c927fcdeefa3efe98bc6dd30cd624e901b06a Mon Sep 17 00:00:00 2001 From: hien Date: Thu, 15 Dec 2005 21:22:05 +0000 Subject: Added cpuid(). --- tapset/context.stp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tapset/context.stp') diff --git a/tapset/context.stp b/tapset/context.stp index 56740db3..4ba9dfb2 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -65,6 +65,9 @@ function euid:long () %{ THIS->__retvalue = current->euid; %} +function cpuid:long () %{ + THIS->__retvalue = current->thread_info->cpu; +%} function print_stack(stk:string) %{ char *ptr = THIS->stk; -- cgit