mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Shai Fultheim" <shai@scalex86.org>
To: "'Andrew Morton'" <akpm@osdl.org>
Cc: <linux-kernel@vger.kernel.org>, <mort@wildopensource.com>,
	<jes@wildopensource.com>
Subject: RE: [PATCH] PER_CPU [3/4] - PER_CPU-init_tss
Date: Thu, 8 Jul 2004 19:20:11 -0700	[thread overview]
Message-ID: <S263204AbUGICUR/20040709022017Z+15@vger.kernel.org> (raw)
In-Reply-To: <20040708190810.7940ee97.akpm@osdl.org>

I don't think you have to worry about this.

Ring 1 is never used by Linux so the ss1 and esp1 are NOT used for their real purpose in the task struct.  Instead, data is put
there to be used later for setting up sysenter/sysexit in the 'enable_sep_cpu' (arch/i386/kernel/sysenter.c) function.  So, the
initialization is really unimportant.

I suggest you'll 'grep' the kernel for esp1 (I did that). It has no other usage other than (as said) setting up the
sysenter/sysexit. 

Let me know if that’s helps.

Thanks !
 
-----------------
Shai Fultheim
Scalex86.org


> -----Original Message-----
> From: Andrew Morton [mailto:akpm@osdl.org]
> Sent: Thursday, July 08, 2004 19:08
> To: Shai Fultheim
> Cc: linux-kernel@vger.kernel.org; mort@wildopensource.com; jes@wildopensource.com
> Subject: Re: [PATCH] PER_CPU [3/4] - PER_CPU-init_tss
> 
> "Shai Fultheim" <shai@scalex86.org> wrote:
> >
> >  #define INIT_TSS  {							\
> >   	.esp0		= sizeof(init_stack) + (long)&init_stack,	\
> >   	.ss0		= __KERNEL_DS,					\
> >  -	.esp1		= sizeof(init_tss[0]) + (long)&init_tss[0],	\
> >   	.ss1		= __KERNEL_CS,					\
> >   	.ldt		= GDT_ENTRY_LDT,				\
> >   	.io_bitmap_base	= INVALID_IO_BITMAP_OFFSET,			\
> 
> Why this change?  Is it safe?
> 



  reply	other threads:[~2004-07-09  2:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200407090154.i691s3ws017104@fire-2.osdl.org>
2004-07-09  2:08 ` Andrew Morton
2004-07-09  2:20   ` Shai Fultheim [this message]
2004-07-09  1:53 Shai Fultheim

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=S263204AbUGICUR/20040709022017Z+15@vger.kernel.org \
    --to=shai@scalex86.org \
    --cc=akpm@osdl.org \
    --cc=jes@wildopensource.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mort@wildopensource.com \
    /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®