From 2f6e24e1b6b19d8b56da4f7d1120d36cbf191098 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 17 Feb 2006 17:56:08 +0000 Subject: 2006-02-17 Frank Ch. Eigler * stapfuncs.5.in (cpu): Document contextinfo function. * context.stp (cpu): Clone undocumented cpuid() function. --- tapset/ChangeLog | 6 +++++- tapset/context.stp | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'tapset') diff --git a/tapset/ChangeLog b/tapset/ChangeLog index aea292b5..7dec4528 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,6 +1,10 @@ +2006-02-17 Frank Ch. Eigler + + * context.stp (cpu): Clone undocumented cpuid() function. + 2006-02-14 Martin Hunt - * syscalls.stp: MOre updates. + * syscalls.stp: More updates. 2006-02-14 Frank Ch. Eigler 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, " "); -- cgit