From 6ae89ed2afad7a8342da650a3c53d66b8dfa8982 Mon Sep 17 00:00:00 2001 From: ad Date: Wed, 27 Feb 2008 17:02:56 +0000 Subject: [PATCH] +cpu_lookup_byindex --- sys/rump/librump/rumpkern/misc_stub.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/rump/librump/rumpkern/misc_stub.c b/sys/rump/librump/rumpkern/misc_stub.c index e4f1989a8355..15c8340c5862 100644 --- a/sys/rump/librump/rumpkern/misc_stub.c +++ b/sys/rump/librump/rumpkern/misc_stub.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc_stub.c,v 1.6 2008/01/16 13:22:29 ad Exp $ */ +/* $NetBSD: misc_stub.c,v 1.7 2008/02/27 17:02:56 ad Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -33,6 +33,7 @@ #include #include #include +#include #ifdef __sparc__ /* @@ -111,3 +112,11 @@ module_init_class(modclass_t mc) { } + +struct cpu_info * +cpu_lookup_byindex(u_int index) +{ + extern struct cpu_info rump_cpu; + + return &rump_cpu; +}