From: Marko <letterdrop@gmx.de>
To: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How getting a pointer on the per-cpu struct tss_struct??
Date: Mon, 13 Feb 2006 01:14:12 +0100 [thread overview]
Message-ID: <20060213011412.0779d337.letterdrop@gmx.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0602121552520.10777@montezuma.fsmlabs.com>
Thanks for answering.
So when I don't want to change the kernel, the only way to get
a pointer on the IO Permission Bitmap is using the TSS entry in
the GDT??
Or is there another way to access the current structure tss_struct??
Marko Euth
On Sun, 12 Feb 2006 15:58:31 -0800 (PST)
Zwane Mwaikambo <zwane@arm.linux.org.uk> wrote:
> On Mon, 13 Feb 2006, Marko wrote:
>
> > But when I try to compile this, I get the warning:
> >
> > *** Warning: "per_cpu__init_tss" [/home/..../module.ko]
> > undefined!
> >
> > and according to this warning an error, when I try to load the module:
> >
> > insmod: error inserting 'module.ko': -1 Unknown symbol in module
>
> init_tss isn't exported, you would need to do
> EXPORT_PER_CPU_SYMBOL(init_tss).
>
> Also a suggestion, you should use __get_cpu_var instead of per_cpu e.g.
>
> struct tss_struct *t;
> /* if you don't need cpu variable just preempt_disable */
> int cpu = get_cpu();
> t = __get_cpu_var(init_tss);
> ...
> put_cpu();
>
next prev parent reply other threads:[~2006-02-13 0:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-12 23:27 Marko
2006-02-12 23:58 ` Zwane Mwaikambo
2006-02-13 0:14 ` Marko [this message]
2006-02-13 6:13 ` Zwane Mwaikambo
2006-02-13 7:29 ` Arjan van de Ven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060213011412.0779d337.letterdrop@gmx.de \
--to=letterdrop@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=zwane@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®